joye-backend-utility 4.0.1 → 4.0.3

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/dist/database.js CHANGED
@@ -62,8 +62,6 @@ class database {
62
62
  useNewUrlParser: true,
63
63
  useUnifiedTopology: true,
64
64
  useFindAndModify: false,
65
- user: config_1.DB_USER || '',
66
- pass: config_1.DB_PASSWORD || '',
67
65
  // autoIndex: false, // True only for development
68
66
  };
69
67
  const connection = await (0, mongoose_1.createConnection)(url, options);
@@ -21,4 +21,7 @@ const DatabaseInfo = new mongoose_1.Schema({
21
21
  required: true,
22
22
  },
23
23
  });
24
+ DatabaseInfo.index({ platformKey: 1, tId: -1 }, {
25
+ unique: false,
26
+ });
24
27
  exports.DatabaseInfoSchema = DatabaseInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Joye backend utility for db functions and common functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",