1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 13:35:52 +02:00
This commit is contained in:
syuilo
2017-01-17 10:39:21 +09:00
parent c4e517ab15
commit 19e12bf5cf
19 changed files with 28 additions and 29 deletions

View File

@@ -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;