From 876ffe2524fe78416161d966777de9243ae10a2e Mon Sep 17 00:00:00 2001 From: Felix <23635466+its-felix@users.noreply.github.com> Date: Mon, 27 May 2024 00:49:47 +0200 Subject: [PATCH] feat: round application summary --- web/summary.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/summary.go b/web/summary.go index fd3b161..c2a4389 100644 --- a/web/summary.go +++ b/web/summary.go @@ -45,6 +45,13 @@ SELECT return util.NewEchoPgxHTTPError(err) } + res.Accounts -= res.Accounts % 50 + res.ApiTokens -= res.ApiTokens % 50 + res.AccVerifications -= res.AccVerifications % 50 + res.Apps -= res.Apps % 5 + res.AppClients -= res.AppClients % 5 + res.AppClientAccs -= res.AppClientAccs % 50 + return c.JSON(http.StatusOK, res) }) }