浏览代码

fix count type

Pouria Ezzati 1 年之前
父节点
当前提交
00ce218262
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/queries/link.ts

+ 1 - 1
server/queries/link.ts

@@ -60,7 +60,7 @@ export const total = async (match: Match<Link>, params: TotalParams = {}) => {
     );
   }
 
-  const [{ count }] = await query.count("*");
+  const [{ count }]: { count: number }[] = await query.count("*");
 
   return typeof count === "number" ? count : parseInt(count);
 };