mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-10 13:14:04 +03:00
orders stats
This commit is contained in:
parent
5cd65b9b66
commit
9bf62c59e5
@ -6,7 +6,9 @@ export default async () => {
|
|||||||
return await runQuery({
|
return await runQuery({
|
||||||
label: "GET_ALL_STATS",
|
label: "GET_ALL_STATS",
|
||||||
queryFn: async (DB) => {
|
queryFn: async (DB) => {
|
||||||
const r = await DB.select("*").from("stats");
|
const r = await DB.select("*")
|
||||||
|
.from("stats")
|
||||||
|
.orderBy("created_at");
|
||||||
|
|
||||||
if (!r || r.error) {
|
if (!r || r.error) {
|
||||||
return [];
|
return [];
|
||||||
|
Loading…
Reference in New Issue
Block a user