@veritree/services 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/services/images.js +1 -5
package/package.json
CHANGED
package/src/services/images.js
CHANGED
|
@@ -7,7 +7,6 @@ export const createImagesApiService = (orgId, orgType) => {
|
|
|
7
7
|
const get = {
|
|
8
8
|
async all(
|
|
9
9
|
purpose,
|
|
10
|
-
tagName,
|
|
11
10
|
countryId,
|
|
12
11
|
regionId,
|
|
13
12
|
subsiteId,
|
|
@@ -16,7 +15,6 @@ export const createImagesApiService = (orgId, orgType) => {
|
|
|
16
15
|
) {
|
|
17
16
|
const url = `${_getUrl()}?${_getParams(
|
|
18
17
|
purpose,
|
|
19
|
-
tagName,
|
|
20
18
|
countryId,
|
|
21
19
|
regionId,
|
|
22
20
|
subsiteId,
|
|
@@ -33,7 +31,6 @@ export const createImagesApiService = (orgId, orgType) => {
|
|
|
33
31
|
|
|
34
32
|
const _getParams = (
|
|
35
33
|
purpose,
|
|
36
|
-
tagName,
|
|
37
34
|
countryId,
|
|
38
35
|
regionId,
|
|
39
36
|
subsiteId,
|
|
@@ -42,13 +39,12 @@ export const createImagesApiService = (orgId, orgType) => {
|
|
|
42
39
|
) => {
|
|
43
40
|
const paramPageSize = pageSize ? `&page_size=${pageSize}` : "";
|
|
44
41
|
const paramPurpose = purpose ? `&purpose=${purpose}` : "";
|
|
45
|
-
const paramTagName = tagName ? `&tag_name=${tagName}` : "";
|
|
46
42
|
const paramCountryId = countryId ? `&country_id=${countryId}` : "";
|
|
47
43
|
const paramRegionId = regionId ? `®ion_id=${regionId}` : "";
|
|
48
44
|
const paramSubsiteId = subsiteId ? `&subsite_id=${subsiteId}` : "";
|
|
49
45
|
const paramPage = page ? `&page=${page}` : "";
|
|
50
46
|
|
|
51
|
-
const params = `${paramPurpose}${paramPageSize}${
|
|
47
|
+
const params = `${paramPurpose}${paramPageSize}${paramCountryId}${paramRegionId}${paramSubsiteId}${paramPage}`;
|
|
52
48
|
|
|
53
49
|
return `org_id=${orgId}&org_type=${orgType}${params}`;
|
|
54
50
|
};
|