From 19e12bf5cf6f56aed429333594444a40184c8a06 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 17 Jan 2017 10:39:21 +0900 Subject: :v: --- src/api/models/access-token.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/models/access-token.ts') 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; -- cgit v1.2.3-freya