Merge pull request #776 from thedevs-network/develop

merge develop into v2
This commit is contained in:
Pouria Ezzati 2025-01-08 20:40:12 +03:30 committed by GitHub
commit 2ebed2ab7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);
};