mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 09:13:09 +02:00
ハッシュ値はMongoDB側で管理されているから手動でインデックスを明示する必要はなさそうだ
This commit is contained in:
parent
6df3db23d6
commit
b06950d5e7
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