@bprotsyk/aso-core 2.1.113 → 2.1.114
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.
|
@@ -253,12 +253,12 @@ async function cloneTraffleCampaign(app, platform, addDefaultStreams) {
|
|
|
253
253
|
// Для конкретної платформи
|
|
254
254
|
const platformName = (0, app_1.getPlatformName)(platform);
|
|
255
255
|
matchingCampaign = allCampaigns.filter((c) => {
|
|
256
|
-
const hasBundle = c.name.includes(`[${app.bundle}]`);
|
|
257
256
|
const hasDomain = c.name.includes(app.domainParams.name);
|
|
257
|
+
const hasGroup = c.group == app.id.toString();
|
|
258
258
|
// Перевіряємо наявність платформи в дужках в кінці назви
|
|
259
259
|
const platformPattern = new RegExp(`\\(.*${platformName}.*\\)\\s*$`);
|
|
260
260
|
const hasPlatform = platformPattern.test(c.name);
|
|
261
|
-
return
|
|
261
|
+
return hasGroup && hasDomain && hasPlatform;
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
else {
|
package/package.json
CHANGED
|
@@ -337,13 +337,14 @@ async function cloneTraffleCampaign(app: IApp, platform: EPlatform, addDefaultSt
|
|
|
337
337
|
// Для конкретної платформи
|
|
338
338
|
const platformName = getPlatformName(platform);
|
|
339
339
|
matchingCampaign = allCampaigns.filter((c) => {
|
|
340
|
-
|
|
340
|
+
|
|
341
341
|
const hasDomain = c.name.includes(app.domainParams.name);
|
|
342
|
+
const hasGroup = c.group == app.id.toString()
|
|
342
343
|
|
|
343
344
|
// Перевіряємо наявність платформи в дужках в кінці назви
|
|
344
345
|
const platformPattern = new RegExp(`\\(.*${platformName}.*\\)\\s*$`);
|
|
345
346
|
const hasPlatform = platformPattern.test(c.name);
|
|
346
|
-
return
|
|
347
|
+
return hasGroup && hasDomain && hasPlatform;
|
|
347
348
|
});
|
|
348
349
|
} else {
|
|
349
350
|
// Для General платформи
|