Yuki Takei 2 سال پیش
والد
کامیت
18e0339e82
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/remark-lsx/src/server/routes/list-pages/index.ts

+ 1 - 1
packages/remark-lsx/src/server/routes/list-pages/index.ts

@@ -196,7 +196,7 @@ export const listPages = async(req: Request & { user: IUser }, res: Response): P
     return res.status(200).send({ pages, toppageViewersCount });
     return res.status(200).send({ pages, toppageViewersCount });
   }
   }
   catch (error) {
   catch (error) {
-    if (isHttpError) {
+    if (isHttpError(error)) {
       return res.status(error.status).send(error);
       return res.status(error.status).send(error);
     }
     }
     return res.status(500).send(error);
     return res.status(500).send(error);