|
@@ -14,7 +14,7 @@ const updateapply = {
|
|
|
record: { type: Array }, // 记录
|
|
|
remark: { type: String },
|
|
|
};
|
|
|
-const schema = new Schema(apply, { toJSON: { virtuals: true } });
|
|
|
+const schema = new Schema(updateapply, { toJSON: { virtuals: true } });
|
|
|
schema.index({ id: 1 });
|
|
|
schema.index({ user_id: 1 });
|
|
|
schema.index({ 'meta.createdAt': 1 });
|