Преглед на файлове

Merge branch 'feat/integrate-branch-resume-page-operations' into feat/increase-in-Main-and-decrease-in-Sub-of-descendant-count

yohei0125 преди 3 години
родител
ревизия
3844a2a370
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/app/src/server/models/page-operation.ts

+ 1 - 1
packages/app/src/server/models/page-operation.ts

@@ -106,7 +106,7 @@ const schema = new Schema<PageOperationDocument, PageOperationModel>({
   user: { type: userSchemaForResuming, required: true },
   options: { type: optionsSchemaForResuming },
   incForUpdatingDescendantCount: { type: Number },
-  unprocessableExpiryDate: { type: Date, default: addSeconds(new Date(), 10) },
+  unprocessableExpiryDate: { type: Date, default: () => addSeconds(new Date(), 10) },
 });
 
 schema.statics.findByIdAndUpdatePageActionStage = async function(