0
0
This commit is contained in:
syuilo 2018-08-12 03:09:22 +09:00
parent 3a77d871d5
commit 7c763600b7

View File

@ -10,7 +10,7 @@ import DriveFileThumbnail, { deleteDriveFileThumbnail } from './drive-file-thumb
const DriveFile = monkDb.get<IDriveFile>('driveFiles.files'); const DriveFile = monkDb.get<IDriveFile>('driveFiles.files');
DriveFile.createIndex('md5'); DriveFile.createIndex('md5');
DriveFile.createIndex(['metadata.uri', 'metadata.userId'], { sparse: true, unique: true }); DriveFile.createIndex('metadata.uri');
export default DriveFile; export default DriveFile;
export const DriveFileChunk = monkDb.get('driveFiles.chunks'); export const DriveFileChunk = monkDb.get('driveFiles.chunks');