ハッシュ値はMongoDB側で管理されているから手動でインデックスを明示する必要はなさそうだ
This commit is contained in:
		| @@ -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> => { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo