@bprotsyk/aso-core 1.2.132 → 1.2.134

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.
@@ -8,6 +8,7 @@ export interface IUpsertFlashAppRequest {
8
8
  onesignalRestApiKey: string;
9
9
  domain: string;
10
10
  linkPath: string;
11
+ policyUrl: string;
11
12
  developerName: string;
12
13
  developerEmail: string;
13
14
  developerOrganization: string;
@@ -126,7 +126,7 @@ let removeGeosFromAllRedirectCampaigns = async (geoToRemove) => {
126
126
  };
127
127
  exports.removeGeosFromAllRedirectCampaigns = removeGeosFromAllRedirectCampaigns;
128
128
  let createOrFindFlashRedirectCampaign = async (app) => {
129
- if (app.keitaroData && app.keitaroData?.redirectCampaignId != 0) {
129
+ if (app.keitaroData && !app.keitaroData?.redirectCampaignId && app.keitaroData?.redirectCampaignId != 0) {
130
130
  console.log(app.keitaroData?.redirectCampaignId);
131
131
  let campaign = await keitaro_service_1.KeitaroService.getCampaignById(app.keitaroData.redirectCampaignId);
132
132
  return campaign;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.132",
3
+ "version": "1.2.134",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -12,6 +12,7 @@ export interface IUpsertFlashAppRequest {
12
12
 
13
13
  domain: string,
14
14
  linkPath: string,
15
+ policyUrl: string,
15
16
 
16
17
  developerName: string
17
18
  developerEmail: string
@@ -137,7 +137,7 @@ export let removeGeosFromAllRedirectCampaigns = async (geoToRemove: string) => {
137
137
  }
138
138
 
139
139
  export let createOrFindFlashRedirectCampaign = async (app: IFlashApp): Promise<IKeitaroCampaign> => {
140
- if (app.keitaroData && app.keitaroData?.redirectCampaignId != 0) {
140
+ if (app.keitaroData && !app.keitaroData?.redirectCampaignId && app.keitaroData?.redirectCampaignId != 0) {
141
141
  console.log(app.keitaroData?.redirectCampaignId)
142
142
  let campaign = await KeitaroService.getCampaignById(app.keitaroData.redirectCampaignId)
143
143
  return campaign