summaryrefslogtreecommitdiff
path: root/src/api/models/access-token.ts
blob: 9985be5013e517121df68a80c3855dac3da31d53 (plain)
1
2
3
4
5
6
7
8
import db from '../../db/mongodb';

const collection = db.get('access_tokens');

(collection as any).createIndex('token'); // fuck type definition
(collection as any).createIndex('hash'); // fuck type definition

export default collection as any; // fuck type definition