Explorar el Código

If the page is updated, it is not subject to automatic deletion.

Shun Miyazawa hace 2 años
padre
commit
db27586bf8
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      apps/app/src/server/service/page/index.ts

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

@@ -4108,6 +4108,11 @@ class PageService implements IPageService {
     const clonedPageData = Page.hydrate(pageData.toObject());
     const newPageData = pageData;
 
+    // Do not consider it for automatic deletion if updated at least once
+    if (newPageData.wipExpiredAt != null) {
+      newPageData.wipExpiredAt = null;
+    }
+
     // use the previous data if absent
     const grant = options.grant ?? clonedPageData.grant;
     const grantUserGroupIds = options.userRelatedGrantUserGroupIds != null