@bprotsyk/aso-core 1.2.80 → 1.2.81

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.
@@ -141,7 +141,7 @@ async function getCampaignById(id) {
141
141
  }
142
142
  async function upsertStreamToCampaign(campaign, stream) {
143
143
  let streams = await getStreamsByCampaignId(campaign.id);
144
- let identicalStream = streams.find((s) => stream.id == s.id);
144
+ let identicalStream = streams.find((s) => stream.name == s.name);
145
145
  if (identicalStream) {
146
146
  console.log(`Found identical! Name: ${stream.name}`);
147
147
  await http_1.default.put(`streams/${identicalStream.id}`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.80",
3
+ "version": "1.2.81",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -169,7 +169,7 @@ async function getCampaignById(id: number): Promise<IKeitaroCampaign> {
169
169
  export async function upsertStreamToCampaign(campaign: IKeitaroCampaign, stream: Partial<IKeitaroStream>) {
170
170
  let streams = await getStreamsByCampaignId(campaign.id)
171
171
 
172
- let identicalStream = streams.find((s) => stream.id == s.id)
172
+ let identicalStream = streams.find((s) => stream.name == s.name)
173
173
 
174
174
  if (identicalStream) {
175
175
  console.log(`Found identical! Name: ${stream.name}`)