This commit is contained in:
archer 2025-12-08 01:23:24 +08:00
parent f394543767
commit b8c9a10cd3
No known key found for this signature in database
GPG Key ID: 4446499B846D4A9E

View File

@ -107,16 +107,6 @@ try {
// Cron clear invalid data
DatasetDataSchema.index({ updateTime: 1 });
// fileId index
DatasetDataSchema.index(
{ fileId: 1 },
{ unique: true, partialFilterExpression: { fileId: { $exists: true } } }
);
DatasetDataSchema.index(
{ imageId: 1 },
{ unique: true, partialFilterExpression: { imageId: { $exists: true } } }
);
} catch (error) {
console.log(error);
}