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

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

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

export default collection as any; // fuck type definition