perf: paging data and image

This commit is contained in:
archer
2023-06-06 11:32:55 +08:00
parent 16018a7e0b
commit b0d0a76a8e
6 changed files with 7 additions and 89 deletions

View File

@@ -47,7 +47,7 @@ try {
BillSchema.index({ time: -1 });
BillSchema.index({ userId: 1 });
} catch (error) {
error;
console.log(error);
}
export const Bill: Model<BillType> = models['bill'] || model('bill', BillSchema);

View File

@@ -86,7 +86,7 @@ try {
ModelSchema.index({ updateTime: -1 });
ModelSchema.index({ 'share.collection': -1 });
} catch (error) {
error;
console.log(error);
}
export const Model: MongoModel<ModelType> = models['model'] || model('model', ModelSchema);