Compare commits

...

6 Commits
main ... v2

Author SHA1 Message Date
Pouria Ezzati
2ebed2ab7d
Merge pull request #776 from thedevs-network/develop
merge develop into v2
2025-01-08 20:40:12 +03:30
Pouria Ezzati
7fdc1c77b4
fix uptime badge link 2024-12-09 19:22:37 +03:30
Pouria Ezzati
0455941f6f
add uptime badge 2024-12-09 19:21:26 +03:30
Pouria Ezzati
00ce218262 fix count type 2024-12-09 18:58:21 +03:30
Pouria Ezzati
31ad3a73ee
Merge pull request #773 from dpevunov-cp/fix_count_query
fix count sql query to use index
2024-12-09 18:38:06 +03:30
Dmitrii Pevunov
0d3b6a00c7 fix count sql query to use index 2024-12-06 00:01:02 +04:00
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);
};