@abtnode/models 1.16.31-beta-a0cc72cf → 1.16.31-beta-8548ddf1

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.
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.down = exports.up = void 0;
4
+ const up = async ({ context }) => {
5
+ try {
6
+ await context.addIndex('user_sessions', ['status', 'visitorId']);
7
+ await context.addIndex('user_sessions', ['status', 'userDid', 'visitorId', 'appPid']);
8
+ }
9
+ catch (err) {
10
+ console.error('Failed to add blocklet indexes', err);
11
+ }
12
+ };
13
+ exports.up = up;
14
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
+ const down = async ({ context }) => { };
16
+ exports.down = down;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/models",
3
- "version": "1.16.31-beta-a0cc72cf",
3
+ "version": "1.16.31-beta-8548ddf1",
4
4
  "description": "Sequelize models for blocklet server and blocklet service",
5
5
  "homepage": "https://github.com/ArcBlock/blocklet-server#readme",
6
6
  "publishConfig": {
@@ -33,8 +33,8 @@
33
33
  "url": "https://github.com/ArcBlock/blocklet-server/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@abtnode/logger": "1.16.31-beta-a0cc72cf",
37
- "@abtnode/types": "1.16.31-beta-a0cc72cf",
36
+ "@abtnode/logger": "1.16.31-beta-8548ddf1",
37
+ "@abtnode/types": "1.16.31-beta-8548ddf1",
38
38
  "lodash.clonedeep": "^4.5.0",
39
39
  "lodash.isempty": "^4.4.0",
40
40
  "sequelize": "^6.35.0",
@@ -54,5 +54,5 @@
54
54
  "typescript": "^5.0.4"
55
55
  },
56
56
  "resolutions": {},
57
- "gitHead": "d1eec814979a4086fc5efd7c719687b76c972ec6"
57
+ "gitHead": "ab1686a90caa5a4478f7ce6011a73e7e36861c51"
58
58
  }