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/app.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/app.ts')
| -rw-r--r-- | src/api/models/app.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/api/models/app.ts b/src/api/models/app.ts index 39bb6cfa60..68d74be324 100644 --- a/src/api/models/app.ts +++ b/src/api/models/app.ts @@ -1,9 +1,9 @@ import db from '../../db/mongodb'; -const collection = db.collection('apps'); +const collection = db.get('apps'); -collection.createIndex('name_id'); -collection.createIndex('name_id_lower'); -collection.createIndex('secret'); +(collection as any).index('name_id'); // fuck type definition +(collection as any).index('name_id_lower'); // fuck type definition +(collection as any).index('secret'); // fuck type definition export default collection; |