Explorar o código

fix count type

Pouria Ezzati hai 1 ano
pai
achega
00ce218262
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 };