✌️
This commit is contained in:
parent
c4e517ab15
commit
19e12bf5cf
19 changed files with 28 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue