mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 06:16:42 -06:00
✌️
This commit is contained in:
parent
b29ff0e94b
commit
951b2346ab
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import User from './user';
|
||||||
import DriveFileThumbnail, { deleteDriveFileThumbnail } from './drive-file-thumbnail';
|
import DriveFileThumbnail, { deleteDriveFileThumbnail } from './drive-file-thumbnail';
|
||||||
|
|
||||||
const DriveFile = monkDb.get<IDriveFile>('driveFiles.files');
|
const DriveFile = monkDb.get<IDriveFile>('driveFiles.files');
|
||||||
DriveFile.createIndex('md5');
|
DriveFile.createIndex('md5', { sparse: true });
|
||||||
DriveFile.createIndex('metadata.uri', { sparse: true, unique: true });
|
DriveFile.createIndex('metadata.uri', { sparse: true, unique: true });
|
||||||
export default DriveFile;
|
export default DriveFile;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue