mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-25 06:14:06 +00:00
4.8.11 perf (#2832)
* save toast * perf: surya ocr * perf: remove same model name * fix: indexes * perf: ip check * feat: Fixed the version number of the subapplication * feat: simple app get latest child version * perf: update child dispatch variables * feat: variables update doc
This commit is contained in:
@@ -77,8 +77,18 @@ try {
|
||||
// timer task. Get standard plan;Get free plan;Clear expired extract plan
|
||||
SubSchema.index({ type: 1, expiredTime: -1, currentSubLevel: 1 });
|
||||
|
||||
// unique
|
||||
SubSchema.index({ teamId: 1, type: 1, currentSubLevel: 1 }, { unique: true });
|
||||
// 修改后的唯一索引
|
||||
SubSchema.index(
|
||||
{
|
||||
teamId: 1,
|
||||
type: 1,
|
||||
currentSubLevel: 1
|
||||
},
|
||||
{
|
||||
unique: true,
|
||||
partialFilterExpression: { type: SubTypeEnum.standard }
|
||||
}
|
||||
);
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user