@bprotsyk/aso-core 2.1.45 → 2.1.46

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.
@@ -197,7 +197,9 @@ async function cloneOWCampaign(app) {
197
197
  let matchingCampaign = allCampaigns.filter((c) => new RegExp(`#${app.id}.*◈`).test(c.name));
198
198
  if (matchingCampaign.length > 0)
199
199
  return matchingCampaign[0];
200
- const { data: campaigns } = await http_1.default.post(`/campaigns/2673/clone`);
200
+ const { data: campaigns } = await http_1.default.post(`/campaigns/2673/clone`, {
201
+ name: name
202
+ });
201
203
  if (campaigns.length == 0)
202
204
  throw Error("Campaign cloning falied");
203
205
  let clonedCampaign = campaigns[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "2.1.45",
3
+ "version": "2.1.46",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -42,7 +42,7 @@
42
42
  "devDependencies": {
43
43
  "@types/mustache": "^4.2.5",
44
44
  "@types/node": "^20.14.12",
45
- "@types/react": "^18.3.12",
45
+ "@types/react": "^18.3.18",
46
46
  "@types/react-dom": "^18.3.0",
47
47
  "copyfiles": "^2.4.1",
48
48
  "typedoc": "^0.23.28",
@@ -244,7 +244,9 @@ async function cloneOWCampaign(app: IApp): Promise<IKeitaroCampaign> {
244
244
  let matchingCampaign = allCampaigns.filter((c) => new RegExp(`#${app.id}.*◈`).test(c.name))
245
245
  if (matchingCampaign.length > 0) return matchingCampaign[0]
246
246
 
247
- const { data: campaigns } = await keitaroApi.post(`/campaigns/2673/clone`);
247
+ const { data: campaigns } = await keitaroApi.post(`/campaigns/2673/clone`, {
248
+ name: name
249
+ });
248
250
 
249
251
  if (campaigns.length == 0) throw Error("Campaign cloning falied")
250
252