2
0
Эх сурвалжийг харах

fix service to pass tests

Yuki Takei 2 жил өмнө
parent
commit
c4e1fe7748

+ 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}`);
     }