Taichi Masuyama 4 лет назад
Родитель
Сommit
3ace121491
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/src/server/models/page.ts

+ 2 - 2
packages/app/src/server/models/page.ts

@@ -156,7 +156,7 @@ class PageQueryBuilder {
    * generate the query to find the pages '{path}/*' and '{path}' self.
    * If top page, return without doing anything.
    */
-  addConditionToListWithDescendants(path, option) {
+  addConditionToListWithDescendants(path: string, option?) {
     // No request is set for the top page
     if (isTopPage(path)) {
       return this;
@@ -223,7 +223,7 @@ class PageQueryBuilder {
    * *option*
    *   Left for backward compatibility
    */
-  addConditionToListByStartWith(path, option) {
+  addConditionToListByStartWith(path, option?) {
     // No request is set for the top page
     if (isTopPage(path)) {
       return this;