@abtnode/connect-storage 1.16.11-next-ca5f18b5 → 1.16.11-next-3e55bc95

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.
Files changed (2) hide show
  1. package/lib/index.js +6 -3
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -34,7 +34,8 @@ class SequelizeStorage extends EventEmitter {
34
34
  }
35
35
 
36
36
  async read(token) {
37
- return this.state.read(token);
37
+ const data = await this.state.read(token);
38
+ return data;
38
39
  }
39
40
 
40
41
  async create(token, status = 'created') {
@@ -56,11 +57,13 @@ class SequelizeStorage extends EventEmitter {
56
57
  }
57
58
 
58
59
  async exist(token, did) {
59
- return this.state.count({ token, did });
60
+ const data = await this.state.count({ token, did });
61
+ return data;
60
62
  }
61
63
 
62
64
  async clear() {
63
- return this.state.reset();
65
+ const data = await this.state.reset();
66
+ return data;
64
67
  }
65
68
  }
66
69
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.11-next-ca5f18b5",
6
+ "version": "1.16.11-next-3e55bc95",
7
7
  "description": "Sequelize storage for @arcblock/did-auth",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,11 +19,11 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@abtnode/models": "1.16.11-next-ca5f18b5",
22
+ "@abtnode/models": "1.16.11-next-3e55bc95",
23
23
  "lodash": "^4.17.21"
24
24
  },
25
25
  "devDependencies": {
26
26
  "jest": "^27.5.1"
27
27
  },
28
- "gitHead": "d797d0177d585b66d17876c99c994fda4d812f37"
28
+ "gitHead": "cf0251c2d85c617b03151495b5944061ceb373e5"
29
29
  }