✌️
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user