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/user.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/user.ts')
| -rw-r--r-- | src/api/models/user.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/models/user.ts b/src/api/models/user.ts index 5645d38568..25b7999ba0 100644 --- a/src/api/models/user.ts +++ b/src/api/models/user.ts @@ -1,9 +1,9 @@ import db from '../../db/mongodb'; -const collection = db.collection('users'); +const collection = db.get('users'); -collection.createIndex('username'); -collection.createIndex('token'); +(collection as any).index('username'); // fuck type definition +(collection as any).index('token'); // fuck type definition export default collection; |