mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-26 04:32:50 +00:00
init
This commit is contained in:
parent
eab3ae5d1a
commit
6145fa9c3f
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue