@bprotsyk/aso-core 2.1.118 → 2.1.119
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.
|
@@ -199,7 +199,8 @@ async function syncKeitaroCLOGeosWithApps(apps) {
|
|
|
199
199
|
console.log(` App гео для платформи ${platform}: ${appGeos.join(', ')}`);
|
|
200
200
|
// Порівнюємо гео
|
|
201
201
|
const missingGeos = keitaroGeos.filter(geo => !appGeos.includes(geo));
|
|
202
|
-
const needsUpdate = missingGeos.length > 0
|
|
202
|
+
const needsUpdate = missingGeos.length > 0 || appGeos.length !== keitaroGeos.length ||
|
|
203
|
+
!appGeos.every(geo => keitaroGeos.includes(geo));
|
|
203
204
|
console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
|
|
204
205
|
console.log(` Потребує оновлення: ${needsUpdate}`);
|
|
205
206
|
if (needsUpdate) {
|
|
@@ -270,7 +271,8 @@ async function getAppGeoSyncDetails(appId, platform, apps) {
|
|
|
270
271
|
const appGeos = platformData.geo || [];
|
|
271
272
|
// Порівнюємо гео
|
|
272
273
|
const missingGeos = keitaroGeos.filter(geo => !appGeos.includes(geo));
|
|
273
|
-
const needsUpdate = missingGeos.length > 0
|
|
274
|
+
const needsUpdate = missingGeos.length > 0 || appGeos.length !== keitaroGeos.length ||
|
|
275
|
+
!appGeos.every(geo => keitaroGeos.includes(geo));
|
|
274
276
|
return {
|
|
275
277
|
appId,
|
|
276
278
|
platform,
|
package/package.json
CHANGED
|
@@ -252,7 +252,8 @@ export async function syncKeitaroCLOGeosWithApps(apps: IApp[]): Promise<IGeoSync
|
|
|
252
252
|
|
|
253
253
|
// Порівнюємо гео
|
|
254
254
|
const missingGeos = keitaroGeos.filter(geo => !appGeos.includes(geo));
|
|
255
|
-
const needsUpdate = missingGeos.length > 0
|
|
255
|
+
const needsUpdate = missingGeos.length > 0 || appGeos.length !== keitaroGeos.length ||
|
|
256
|
+
!appGeos.every(geo => keitaroGeos.includes(geo));
|
|
256
257
|
|
|
257
258
|
console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
|
|
258
259
|
console.log(` Потребує оновлення: ${needsUpdate}`);
|
|
@@ -337,7 +338,8 @@ export async function getAppGeoSyncDetails(appId: number, platform: string, apps
|
|
|
337
338
|
|
|
338
339
|
// Порівнюємо гео
|
|
339
340
|
const missingGeos = keitaroGeos.filter(geo => !appGeos.includes(geo));
|
|
340
|
-
const needsUpdate = missingGeos.length > 0
|
|
341
|
+
const needsUpdate = missingGeos.length > 0 || appGeos.length !== keitaroGeos.length ||
|
|
342
|
+
!appGeos.every(geo => keitaroGeos.includes(geo));
|
|
341
343
|
|
|
342
344
|
return {
|
|
343
345
|
appId,
|