diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 10:39:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-17 10:39:21 +0900 |
| commit | 19e12bf5cf6f56aed429333594444a40184c8a06 (patch) | |
| tree | 5d1a5533b21743dea82a9db9b2bb8fdb99530321 /src/api/models/access-token.ts | |
| parent | [Test] Fix bug (diff) | |
| download | sharkey-19e12bf5cf6f56aed429333594444a40184c8a06.tar.gz sharkey-19e12bf5cf6f56aed429333594444a40184c8a06.tar.bz2 sharkey-19e12bf5cf6f56aed429333594444a40184c8a06.zip | |
:v:
Diffstat (limited to 'src/api/models/access-token.ts')
| -rw-r--r-- | src/api/models/access-token.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/models/access-token.ts b/src/api/models/access-token.ts index a242865473..ff7189fa3b 100644 --- a/src/api/models/access-token.ts +++ b/src/api/models/access-token.ts @@ -1,8 +1,8 @@ import db from '../../db/mongodb'; -const collection = db.collection('access_tokens'); +const collection = db.get('access_tokens'); -collection.createIndex('token'); -collection.createIndex('hash'); +(collection as any).index('token'); // fuck type definition +(collection as any).index('hash'); // fuck type definition export default collection; |