trashposs/src/server/api/models/access-token.ts
2018-03-29 01:54:41 +09:00

9 lines
274 B
TypeScript

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