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/user.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/api/models/user.ts') 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; -- cgit v1.2.3-freya