@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.
|
|
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
|
@@ -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.
|
|
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}`)
|