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