@bprotsyk/aso-core 1.2.134 → 1.2.135
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.
|
@@ -126,8 +126,8 @@ let removeGeosFromAllRedirectCampaigns = async (geoToRemove) => {
|
|
|
126
126
|
};
|
|
127
127
|
exports.removeGeosFromAllRedirectCampaigns = removeGeosFromAllRedirectCampaigns;
|
|
128
128
|
let createOrFindFlashRedirectCampaign = async (app) => {
|
|
129
|
-
if (app.keitaroData &&
|
|
130
|
-
console.log(
|
|
129
|
+
if (app.keitaroData && app.keitaroData?.redirectCampaignId && app.keitaroData?.redirectCampaignId != 0) {
|
|
130
|
+
console.log("Already exists! Fetching...");
|
|
131
131
|
let campaign = await keitaro_service_1.KeitaroService.getCampaignById(app.keitaroData.redirectCampaignId);
|
|
132
132
|
return campaign;
|
|
133
133
|
}
|
package/package.json
CHANGED
|
@@ -137,8 +137,8 @@ export let removeGeosFromAllRedirectCampaigns = async (geoToRemove: string) => {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export let createOrFindFlashRedirectCampaign = async (app: IFlashApp): Promise<IKeitaroCampaign> => {
|
|
140
|
-
if (app.keitaroData &&
|
|
141
|
-
console.log(
|
|
140
|
+
if (app.keitaroData && app.keitaroData?.redirectCampaignId && app.keitaroData?.redirectCampaignId != 0) {
|
|
141
|
+
console.log("Already exists! Fetching...")
|
|
142
142
|
let campaign = await KeitaroService.getCampaignById(app.keitaroData.redirectCampaignId)
|
|
143
143
|
return campaign
|
|
144
144
|
}
|