From 996295404d2f27f13425a165e8644f3edbfab81f Mon Sep 17 00:00:00 2001 From: Jonas Simoen Date: Tue, 11 Jun 2024 14:09:39 +0200 Subject: [PATCH] minor fixes --- src/controllers/Club.ts | 2 +- src/controllers/Statistic.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/Club.ts b/src/controllers/Club.ts index f476283..c6dc8f5 100644 --- a/src/controllers/Club.ts +++ b/src/controllers/Club.ts @@ -9,7 +9,7 @@ export const GetClubsHandler = async (req: any, rep: any) => { swr: 60, }, orderBy: { - name: 'desc' + name: 'asc' } }); rep.send(clubs); diff --git a/src/controllers/Statistic.ts b/src/controllers/Statistic.ts index 131973f..63c6b38 100644 --- a/src/controllers/Statistic.ts +++ b/src/controllers/Statistic.ts @@ -42,6 +42,11 @@ export const GetPlayerStatisticsHandler = async (req: any, rep: any) => { }, club: true }, + where: { + value: { + not: null, + } + } }); const allStatsPlayers = players.map((player: any) => {