ハッシュ値はMongoDB側で管理されているから手動でインデックスを明示する必要はなさそうだ

This commit is contained in:
syuilo 2017-11-06 22:22:48 +09:00
parent 6df3db23d6
commit b06950d5e7

View file

@ -3,8 +3,6 @@ import monkDb, { nativeDbConn } from '../../db/mongodb';
const collection = monkDb.get('drive_files.files'); const collection = monkDb.get('drive_files.files');
(collection as any).createIndex('md5'); // fuck type definition
export default collection as any; // fuck type definition export default collection as any; // fuck type definition
const getGridFSBucket = async (): Promise<mongodb.GridFSBucket> => { const getGridFSBucket = async (): Promise<mongodb.GridFSBucket> => {