ハッシュ値はMongoDB側で管理されているから手動でインデックスを明示する必要はなさそうだ
This commit is contained in:
parent
39762791a0
commit
e471a9e8b9
1 changed files with 0 additions and 2 deletions
|
@ -3,8 +3,6 @@ import monkDb, { nativeDbConn } from '../../db/mongodb';
|
|||
|
||||
const collection = monkDb.get('drive_files.files');
|
||||
|
||||
(collection as any).createIndex('md5'); // fuck type definition
|
||||
|
||||
export default collection as any; // fuck type definition
|
||||
|
||||
const getGridFSBucket = async (): Promise<mongodb.GridFSBucket> => {
|
||||
|
|
Loading…
Reference in a new issue