Shun Miyazawa 2 лет назад
Родитель
Сommit
e943aea015
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      apps/app/src/server/models/page.ts
  2. 1 1
      apps/app/src/server/service/page/index.ts

+ 1 - 1
apps/app/src/server/models/page.ts

@@ -1060,11 +1060,11 @@ schema.methods.publish = function() {
 
 
 schema.methods.unpublish = function() {
 schema.methods.unpublish = function() {
   this.wip = true;
   this.wip = true;
-  this.wipExpiredAt = new Date();
 };
 };
 
 
 schema.methods.makeWip = function() {
 schema.methods.makeWip = function() {
   this.wip = true;
   this.wip = true;
+  this.wipExpiredAt = new Date();
 };
 };
 
 
 /*
 /*

+ 1 - 1
apps/app/src/server/service/page/index.ts

@@ -3793,7 +3793,7 @@ class PageService implements IPageService {
 
 
     // Set wip
     // Set wip
     if (options.wip) {
     if (options.wip) {
-      page.unpublish();
+      page.makeWip();
     }
     }
 
 
     // Save
     // Save