@bprotsyk/aso-core 1.2.73 → 1.2.74
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.d.ts +1 -1
- package/lib/flash/flash-app.js +32 -38
- package/package.json +1 -1
- package/src/flash/flash-app.ts +33 -39
package/lib/flash/flash-app.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare const FlashAppSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
75
75
|
reservePlugAccountId?: number | undefined;
|
|
76
76
|
plugContent?: string | undefined;
|
|
77
77
|
plugStatus?: string | undefined;
|
|
78
|
-
|
|
78
|
+
reservePlugId?: string | undefined;
|
|
79
79
|
reservePlugType?: string | undefined;
|
|
80
80
|
reservePlugContent?: string | undefined;
|
|
81
81
|
reservePlugStatus?: string | undefined;
|
package/lib/flash/flash-app.js
CHANGED
|
@@ -55,7 +55,7 @@ exports.FlashAppSchema = new mongoose_1.Schema({
|
|
|
55
55
|
required: false
|
|
56
56
|
},
|
|
57
57
|
plugAccountId: Number,
|
|
58
|
-
|
|
58
|
+
reservePlugId: {
|
|
59
59
|
type: String,
|
|
60
60
|
// unique: true,
|
|
61
61
|
required: false
|
|
@@ -198,47 +198,41 @@ async function updateSchemaAndMoveValue(model) {
|
|
|
198
198
|
// employee_addr: "$$REMOVE"
|
|
199
199
|
// },
|
|
200
200
|
$set: {
|
|
201
|
-
"
|
|
201
|
+
"plugAccountId": 1,
|
|
202
|
+
"reservePlugAccountId": 1,
|
|
203
|
+
"plugId": "none",
|
|
204
|
+
"plugContent": "none",
|
|
205
|
+
"keitaroData.domainId": "$$REMOVE",
|
|
206
|
+
"keitaroData.domainName": "$$REMOVE",
|
|
207
|
+
"plugUrl": "$$REMOVE",
|
|
208
|
+
"reservePlugUrl": "$$REMOVE",
|
|
202
209
|
}
|
|
203
210
|
}
|
|
204
211
|
];
|
|
205
212
|
let aggregation = model.aggregate(pipelineStage);
|
|
206
|
-
|
|
213
|
+
await model.collection.dropIndex("keitaroData.domainId");
|
|
214
|
+
await model.collection.dropIndex("keitaroData.domainName");
|
|
215
|
+
await model.collection.dropIndex("plugUrl");
|
|
216
|
+
await model.collection.dropIndex("reservePlugUrl");
|
|
207
217
|
// await model.schema.dropIndex("generationOptions.keyPassword_1")
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
// type: FlashAppType.GAMBLING
|
|
228
|
-
// },
|
|
229
|
-
// $addToSet
|
|
230
|
-
// $unset: [
|
|
231
|
-
// "pastebinUrl",
|
|
232
|
-
// "email",
|
|
233
|
-
// "generationOptions.keyFileName",
|
|
234
|
-
// "generationOptions.keyDeveloperName",
|
|
235
|
-
// "generationOptions.keyDeveloperOrganization",
|
|
236
|
-
// "generationOptions.keyCountryCode",
|
|
237
|
-
// "generationOptions.keyCity",
|
|
238
|
-
// "generationOptions.keyAlias",
|
|
239
|
-
// "generationOptions.keyPassword",
|
|
240
|
-
// ],
|
|
241
|
-
// };
|
|
242
|
-
// await model.updateMany({}, updateOperation);
|
|
218
|
+
await aggregation.exec();
|
|
219
|
+
const updateOperation = {
|
|
220
|
+
$set: {
|
|
221
|
+
plugId: "none"
|
|
222
|
+
},
|
|
223
|
+
// $addToSet
|
|
224
|
+
$unset: [
|
|
225
|
+
"pastebinUrl",
|
|
226
|
+
"email",
|
|
227
|
+
"generationOptions.keyFileName",
|
|
228
|
+
"generationOptions.keyDeveloperName",
|
|
229
|
+
"generationOptions.keyDeveloperOrganization",
|
|
230
|
+
"generationOptions.keyCountryCode",
|
|
231
|
+
"generationOptions.keyCity",
|
|
232
|
+
"generationOptions.keyAlias",
|
|
233
|
+
"generationOptions.keyPassword",
|
|
234
|
+
],
|
|
235
|
+
};
|
|
236
|
+
await model.updateMany({}, updateOperation);
|
|
243
237
|
}
|
|
244
238
|
exports.updateSchemaAndMoveValue = updateSchemaAndMoveValue;
|
package/package.json
CHANGED
package/src/flash/flash-app.ts
CHANGED
|
@@ -107,7 +107,7 @@ export const FlashAppSchema = new Schema({
|
|
|
107
107
|
required: false
|
|
108
108
|
},
|
|
109
109
|
plugAccountId: Number,
|
|
110
|
-
|
|
110
|
+
reservePlugId: {
|
|
111
111
|
type: String,
|
|
112
112
|
// unique: true,
|
|
113
113
|
required: false
|
|
@@ -255,53 +255,47 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
|
|
|
255
255
|
// employee_addr: "$$REMOVE"
|
|
256
256
|
// },
|
|
257
257
|
$set: {
|
|
258
|
-
"
|
|
258
|
+
"plugAccountId": 1,
|
|
259
|
+
"reservePlugAccountId": 1,
|
|
260
|
+
"plugId": "none",
|
|
261
|
+
"plugContent": "none",
|
|
262
|
+
"keitaroData.domainId": "$$REMOVE",
|
|
263
|
+
"keitaroData.domainName": "$$REMOVE",
|
|
264
|
+
"plugUrl": "$$REMOVE",
|
|
265
|
+
"reservePlugUrl": "$$REMOVE",
|
|
259
266
|
}
|
|
260
267
|
}
|
|
261
268
|
]
|
|
262
269
|
|
|
263
270
|
let aggregation = model.aggregate(pipelineStage)
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
// await aggregation.exec()
|
|
271
|
+
await model.collection.dropIndex("keitaroData.domainId")
|
|
272
|
+
await model.collection.dropIndex("keitaroData.domainName")
|
|
267
273
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
// pushesEnabled: true,
|
|
271
|
-
// keitaroData: {
|
|
272
|
-
// redirectCampaignId: "none",
|
|
273
|
-
// redirectCampaignName: "none",
|
|
274
|
-
// trackingCampaignId: "none",
|
|
275
|
-
// trackingCampaignName: "none",
|
|
274
|
+
await model.collection.dropIndex("plugUrl")
|
|
275
|
+
await model.collection.dropIndex("reservePlugUrl")
|
|
276
276
|
|
|
277
|
-
//
|
|
278
|
-
|
|
277
|
+
// await model.schema.dropIndex("generationOptions.keyPassword_1")
|
|
278
|
+
await aggregation.exec()
|
|
279
279
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
// "generationOptions.keyCountryCode",
|
|
298
|
-
// "generationOptions.keyCity",
|
|
299
|
-
// "generationOptions.keyAlias",
|
|
300
|
-
// "generationOptions.keyPassword",
|
|
301
|
-
// ],
|
|
302
|
-
// };
|
|
280
|
+
const updateOperation: UpdateQuery<IFlashApp> = {
|
|
281
|
+
$set: {
|
|
282
|
+
plugId: "none"
|
|
283
|
+
},
|
|
284
|
+
// $addToSet
|
|
285
|
+
$unset: [
|
|
286
|
+
"pastebinUrl",
|
|
287
|
+
"email",
|
|
288
|
+
"generationOptions.keyFileName",
|
|
289
|
+
"generationOptions.keyDeveloperName",
|
|
290
|
+
"generationOptions.keyDeveloperOrganization",
|
|
291
|
+
"generationOptions.keyCountryCode",
|
|
292
|
+
"generationOptions.keyCity",
|
|
293
|
+
"generationOptions.keyAlias",
|
|
294
|
+
"generationOptions.keyPassword",
|
|
295
|
+
],
|
|
296
|
+
};
|
|
303
297
|
|
|
304
|
-
|
|
298
|
+
await model.updateMany({}, updateOperation);
|
|
305
299
|
|
|
306
300
|
|
|
307
301
|
}
|