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