Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
2ebed2ab7d | ||
|
7fdc1c77b4 | ||
|
0455941f6f | ||
|
00ce218262 | ||
|
31ad3a73ee | ||
|
0d3b6a00c7 |
@ -9,9 +9,9 @@ _Contributions and bug reports are welcome._
|
|||||||
[https://kutt.it](https://kutt.it)
|
[https://kutt.it](https://kutt.it)
|
||||||
|
|
||||||
[](https://travis-ci.org/thedevs-network/kutt)
|
[](https://travis-ci.org/thedevs-network/kutt)
|
||||||
|
[](https://status.kutt.it)
|
||||||
[](https://github.com/thedevs-network/kutt/#contributing)
|
[](https://github.com/thedevs-network/kutt/#contributing)
|
||||||
[](https://github.com/thedevs-network/kutt/blob/develop/LICENSE)
|
[](https://github.com/thedevs-network/kutt/blob/develop/LICENSE)
|
||||||
[](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fthedevs-network%2Fkutt%2F)
|
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
|
@ -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);
|
return typeof count === "number" ? count : parseInt(count);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user