Browse Source

Return countAll as number instead of string

poeti8 6 năm trước cách đây
mục cha
commit
5c892bac03
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/controllers/linkController.ts

+ 1 - 1
server/controllers/linkController.ts

@@ -222,7 +222,7 @@ export const getUserLinks: Handler = async (req, res) => {
     getUserLinksCount({ user_id: req.user.id }),
     getLinks(req.user.id, req.query)
   ]);
-  return res.json({ list, countAll });
+  return res.json({ list, countAll: parseInt(countAll) });
 };
 
 export const setCustomDomain: Handler = async (req, res) => {