Merge pull request #776 from thedevs-network/develop
merge develop into v2
This commit is contained in:
commit
2ebed2ab7d
@ -9,9 +9,9 @@ _Contributions and bug reports are welcome._
|
||||
[https://kutt.it](https://kutt.it)
|
||||
|
||||
[](https://travis-ci.org/thedevs-network/kutt)
|
||||
[](https://status.kutt.it)
|
||||
[](https://github.com/thedevs-network/kutt/#contributing)
|
||||
[](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
|
||||
|
||||
|
@ -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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user