@bprotsyk/aso-core 1.2.35 → 1.2.36

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.
@@ -188,7 +188,9 @@ async function updateSchemaAndMoveValue(model) {
188
188
  "generationOptions.keyCity": 0,
189
189
  "generationOptions.keyAlias": 0,
190
190
  "generationOptions.keyPassword": 0
191
- },
191
+ }
192
+ },
193
+ {
192
194
  '$addFields': {
193
195
  'plugUrl': `$pastebinUrl`,
194
196
  'reservePlugUrl': null,
@@ -219,7 +221,7 @@ async function updateSchemaAndMoveValue(model) {
219
221
  ]
220
222
  };
221
223
  await model.updateMany({}, [
222
- ...aggregationPipeline,
224
+ aggregationPipeline,
223
225
  updateOperation
224
226
  ]);
225
227
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.35",
3
+ "version": "1.2.36",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -258,7 +258,9 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashAppUpdated>):
258
258
  "generationOptions.keyCity": 0,
259
259
  "generationOptions.keyAlias": 0,
260
260
  "generationOptions.keyPassword": 0
261
- },
261
+ }
262
+ },
263
+ {
262
264
  '$addFields': {
263
265
  'plugUrl': `$pastebinUrl`,
264
266
  'reservePlugUrl': null,
@@ -291,7 +293,7 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashAppUpdated>):
291
293
  };
292
294
 
293
295
  await model.updateMany({}, [
294
- ...aggregationPipeline,
296
+ aggregationPipeline,
295
297
  updateOperation
296
298
  ]);
297
299
  } ``