@bprotsyk/aso-core 1.2.57 → 1.2.58
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.
- package/lib/flash/flash-app.js +16 -16
- package/package.json +1 -1
- package/src/flash/flash-app.ts +16 -16
package/lib/flash/flash-app.js
CHANGED
|
@@ -149,22 +149,22 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
149
149
|
});
|
|
150
150
|
// TODO app type (casino / fin)
|
|
151
151
|
async function updateSchemaAndMoveValue(model) {
|
|
152
|
-
|
|
153
|
-
let pipelineStage = [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
]
|
|
166
|
-
let aggregation = model.aggregate(pipelineStage)
|
|
167
|
-
await aggregation.exec()
|
|
152
|
+
await model.syncIndexes();
|
|
153
|
+
// let pipelineStage: PipelineStage[] = [
|
|
154
|
+
// {
|
|
155
|
+
// // $set: {
|
|
156
|
+
// // city: "$employee_addr.city",
|
|
157
|
+
// // street: "$employee_addr.street",
|
|
158
|
+
// // apartment: "$employee_addr.apartment",
|
|
159
|
+
// // employee_addr: "$$REMOVE"
|
|
160
|
+
// // },
|
|
161
|
+
// $set: {
|
|
162
|
+
// "generationOptions.keyDeveloperName": "$$REMOVE",
|
|
163
|
+
// }
|
|
164
|
+
// }
|
|
165
|
+
// ]
|
|
166
|
+
// let aggregation = model.aggregate(pipelineStage)
|
|
167
|
+
// await aggregation.exec()
|
|
168
168
|
// const updateOperation: UpdateQuery<IFlashApp> = {
|
|
169
169
|
// $set: {
|
|
170
170
|
// pushesEnabled: true,
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -200,24 +200,24 @@ export const FlashAppSchema = new Schema({
|
|
|
200
200
|
})
|
|
201
201
|
// TODO app type (casino / fin)
|
|
202
202
|
export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise<void> {
|
|
203
|
-
|
|
204
|
-
let pipelineStage: PipelineStage[] = [
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
]
|
|
203
|
+
await model.syncIndexes()
|
|
204
|
+
// let pipelineStage: PipelineStage[] = [
|
|
205
|
+
// {
|
|
206
|
+
// // $set: {
|
|
207
|
+
// // city: "$employee_addr.city",
|
|
208
|
+
// // street: "$employee_addr.street",
|
|
209
|
+
// // apartment: "$employee_addr.apartment",
|
|
210
|
+
// // employee_addr: "$$REMOVE"
|
|
211
|
+
// // },
|
|
212
|
+
// $set: {
|
|
213
|
+
// "generationOptions.keyDeveloperName": "$$REMOVE",
|
|
214
|
+
// }
|
|
215
|
+
// }
|
|
216
|
+
// ]
|
|
217
217
|
|
|
218
|
-
let aggregation = model.aggregate(pipelineStage)
|
|
218
|
+
// let aggregation = model.aggregate(pipelineStage)
|
|
219
219
|
|
|
220
|
-
await aggregation.exec()
|
|
220
|
+
// await aggregation.exec()
|
|
221
221
|
|
|
222
222
|
// const updateOperation: UpdateQuery<IFlashApp> = {
|
|
223
223
|
// $set: {
|