@bprotsyk/aso-core 1.2.65 → 1.2.67

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.
@@ -29,7 +29,7 @@ exports.FlashAppSchema = new mongoose_1.Schema({
29
29
  pushesEnabled: Boolean,
30
30
  plugUrl: {
31
31
  type: String,
32
- unique: true,
32
+ // unique: true,
33
33
  required: true
34
34
  },
35
35
  plugType: {
@@ -40,7 +40,7 @@ exports.FlashAppSchema = new mongoose_1.Schema({
40
40
  },
41
41
  reservePlugUrl: {
42
42
  type: String,
43
- unique: true,
43
+ // unique: true,
44
44
  required: false
45
45
  },
46
46
  reservePlugType: {
@@ -51,7 +51,7 @@ exports.FlashAppSchema = new mongoose_1.Schema({
51
51
  },
52
52
  policyUrl: {
53
53
  type: String,
54
- unique: true,
54
+ // unique: true,
55
55
  required: false
56
56
  },
57
57
  type: {
@@ -150,7 +150,7 @@ 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()
153
+ await model.syncIndexes();
154
154
  let pipelineStage = [
155
155
  {
156
156
  // $set: {
@@ -166,7 +166,7 @@ async function updateSchemaAndMoveValue(model) {
166
166
  ];
167
167
  let aggregation = model.aggregate(pipelineStage);
168
168
  // await model.collection.dropIndex("generationOptions.keyDeveloperName_1")
169
- await model.collection.dropIndex("generationOptions.keyPassword_1");
169
+ // await model.schema.dropIndex("generationOptions.keyPassword_1")
170
170
  // await aggregation.exec()
171
171
  // const updateOperation: UpdateQuery<IFlashApp> = {
172
172
  // $set: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.2.65",
3
+ "version": "1.2.67",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
@@ -74,7 +74,7 @@ export const FlashAppSchema = new Schema({
74
74
  pushesEnabled: Boolean,
75
75
  plugUrl: {
76
76
  type: String,
77
- unique: true,
77
+ // unique: true,
78
78
  required: true
79
79
  },
80
80
  plugType: {
@@ -85,7 +85,7 @@ export const FlashAppSchema = new Schema({
85
85
  },
86
86
  reservePlugUrl: {
87
87
  type: String,
88
- unique: true,
88
+ // unique: true,
89
89
  required: false
90
90
  },
91
91
  reservePlugType: {
@@ -96,7 +96,7 @@ export const FlashAppSchema = new Schema({
96
96
  },
97
97
  policyUrl: {
98
98
  type: String,
99
- unique: true,
99
+ // unique: true,
100
100
  required: false
101
101
  },
102
102
  type: {
@@ -201,7 +201,7 @@ 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()
204
+ await model.syncIndexes()
205
205
  let pipelineStage: PipelineStage[] = [
206
206
  {
207
207
  // $set: {
@@ -218,7 +218,7 @@ export async function updateSchemaAndMoveValue(model: Model<IFlashApp>): Promise
218
218
 
219
219
  let aggregation = model.aggregate(pipelineStage)
220
220
  // await model.collection.dropIndex("generationOptions.keyDeveloperName_1")
221
- await model.collection.dropIndex("generationOptions.keyPassword_1")
221
+ // await model.schema.dropIndex("generationOptions.keyPassword_1")
222
222
  // await aggregation.exec()
223
223
 
224
224
  // const updateOperation: UpdateQuery<IFlashApp> = {