mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Add index
This commit is contained in:
parent
3c476eb0d8
commit
4c11b74c8a
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue