mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-10-31 23:31:48 +09:00
Add index
This commit is contained in:
parent
1836dd7312
commit
bc197bc958
@ -9,6 +9,7 @@ import User from './user';
|
||||
import DriveFileThumbnail, { deleteDriveFileThumbnail } from './drive-file-thumbnail';
|
||||
|
||||
const DriveFile = monkDb.get<IDriveFile>('driveFiles.files');
|
||||
DriveFile.createIndex('md5');
|
||||
DriveFile.createIndex('metadata.uri', { sparse: true, unique: true });
|
||||
export default DriveFile;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user