Przeglądaj źródła

fix service to pass tests

Yuki Takei 2 lat temu
rodzic
commit
c4e1fe7748
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apps/app/src/server/service/page.ts

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

@@ -375,7 +375,7 @@ class PageService {
 
     const activity = await this.crowi.activityService.createActivity(parameters);
 
-    const isExist = await Page.exists({ path: newPagePath });
+    const isExist = await Page.exists({ path: newPagePath, isEmpty: false });
     if (isExist) {
       throw Error(`Page already exists at ${newPagePath}`);
     }