@bprotsyk/aso-core 2.1.117 → 2.1.118
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.
|
@@ -200,25 +200,26 @@ async function syncKeitaroCLOGeosWithApps(apps) {
|
|
|
200
200
|
// Порівнюємо гео
|
|
201
201
|
const missingGeos = keitaroGeos.filter(geo => !appGeos.includes(geo));
|
|
202
202
|
const needsUpdate = missingGeos.length > 0;
|
|
203
|
-
console.log(` Відсутні
|
|
203
|
+
console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
|
|
204
204
|
console.log(` Потребує оновлення: ${needsUpdate}`);
|
|
205
205
|
if (needsUpdate) {
|
|
206
206
|
summary.appsNeedingUpdate++;
|
|
207
|
+
// Формуємо нові гео - беремо тільки ті, що є в Keitaro
|
|
207
208
|
const updateData = {
|
|
208
209
|
appId: parseInt(group),
|
|
209
210
|
platform: platform,
|
|
210
|
-
newGeos:
|
|
211
|
+
newGeos: keitaroGeos // Використовуємо гео з Keitaro як джерело істини
|
|
211
212
|
};
|
|
212
213
|
summary.updates.push(updateData);
|
|
213
214
|
console.log(`✅ Додаток ${group} (${platform}) потребує оновлення гео:`);
|
|
214
215
|
console.log(` Кампанія: ${campaign.name}`);
|
|
215
216
|
console.log(` Keitaro гео: ${keitaroGeos.join(', ')}`);
|
|
216
217
|
console.log(` App гео: ${appGeos.join(', ')}`);
|
|
217
|
-
console.log(` Відсутні
|
|
218
|
-
console.log(` Нові
|
|
218
|
+
console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
|
|
219
|
+
console.log(` Нові гео (з Keitaro): ${updateData.newGeos.join(', ')}`);
|
|
219
220
|
}
|
|
220
221
|
else {
|
|
221
|
-
console.log(`✅ Додаток ${group} (${platform}) не потребує оновлення
|
|
222
|
+
console.log(`✅ Додаток ${group} (${platform}) не потребує оновлення гео - гео ідентичні`);
|
|
222
223
|
}
|
|
223
224
|
}
|
|
224
225
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -254,16 +254,17 @@ export async function syncKeitaroCLOGeosWithApps(apps: IApp[]): Promise<IGeoSync
|
|
|
254
254
|
const missingGeos = keitaroGeos.filter(geo => !appGeos.includes(geo));
|
|
255
255
|
const needsUpdate = missingGeos.length > 0;
|
|
256
256
|
|
|
257
|
-
console.log(` Відсутні
|
|
257
|
+
console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
|
|
258
258
|
console.log(` Потребує оновлення: ${needsUpdate}`);
|
|
259
259
|
|
|
260
260
|
if (needsUpdate) {
|
|
261
261
|
summary.appsNeedingUpdate++;
|
|
262
262
|
|
|
263
|
+
// Формуємо нові гео - беремо тільки ті, що є в Keitaro
|
|
263
264
|
const updateData: IGeoUpdateData = {
|
|
264
265
|
appId: parseInt(group),
|
|
265
266
|
platform: platform,
|
|
266
|
-
newGeos:
|
|
267
|
+
newGeos: keitaroGeos // Використовуємо гео з Keitaro як джерело істини
|
|
267
268
|
};
|
|
268
269
|
|
|
269
270
|
summary.updates.push(updateData);
|
|
@@ -272,10 +273,10 @@ export async function syncKeitaroCLOGeosWithApps(apps: IApp[]): Promise<IGeoSync
|
|
|
272
273
|
console.log(` Кампанія: ${campaign.name}`);
|
|
273
274
|
console.log(` Keitaro гео: ${keitaroGeos.join(', ')}`);
|
|
274
275
|
console.log(` App гео: ${appGeos.join(', ')}`);
|
|
275
|
-
console.log(` Відсутні
|
|
276
|
-
console.log(` Нові
|
|
276
|
+
console.log(` Відсутні гео в app: ${missingGeos.join(', ')}`);
|
|
277
|
+
console.log(` Нові гео (з Keitaro): ${updateData.newGeos.join(', ')}`);
|
|
277
278
|
} else {
|
|
278
|
-
console.log(`✅ Додаток ${group} (${platform}) не потребує оновлення
|
|
279
|
+
console.log(`✅ Додаток ${group} (${platform}) не потребує оновлення гео - гео ідентичні`);
|
|
279
280
|
}
|
|
280
281
|
|
|
281
282
|
} catch (error) {
|