Browse Source

Merge pull request #776 from thedevs-network/develop

merge develop into v2
Pouria Ezzati 1 năm trước cách đây
mục cha
commit
2ebed2ab7d
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      README.md
  2. 1 1
      server/queries/link.ts

+ 1 - 1
README.md

@@ -9,9 +9,9 @@ _Contributions and bug reports are welcome._
 [https://kutt.it](https://kutt.it)
 
 [![Build Status](https://travis-ci.org/thedevs-network/kutt.svg?branch=v2-beta)](https://travis-ci.org/thedevs-network/kutt)
+[![Uptime Status](https://uptime.betterstack.com/status-badges/v2/monitor/1ogaa.svg)](https://status.kutt.it)
 [![Contributions](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](https://github.com/thedevs-network/kutt/#contributing)
 [![GitHub license](https://img.shields.io/github/license/thedevs-network/kutt.svg)](https://github.com/thedevs-network/kutt/blob/develop/LICENSE)
-[![Twitter](https://img.shields.io/twitter/url/https/github.com/thedevs-network/kutt/.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fthedevs-network%2Fkutt%2F)
 
 ## Table of Contents
 

+ 1 - 1
server/queries/link.ts

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