yumechi-no-kuni/src/api/models/app.ts
2017-01-18 16:30:47 +09:00

9 lines
322 B
TypeScript

import db from '../../db/mongodb';
const collection = db.get('apps');
(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 as any; // fuck type definition