From 4c435575e100604d9f055c7127cad654b7145056 Mon Sep 17 00:00:00 2001 From: Anass Bouassaba Date: Mon, 26 Aug 2024 20:50:56 +0200 Subject: [PATCH] fix(api): group repo query --- api/repo/group_repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/repo/group_repo.go b/api/repo/group_repo.go index 3fa3081cf..5de147ff0 100644 --- a/api/repo/group_repo.go +++ b/api/repo/group_repo.go @@ -183,7 +183,7 @@ func (repo *groupRepo) Count() (int64, error) { } var res Result db := repo.db. - Raw("SELECT count(*) as result FROM group"). + Raw("SELECT count(*) as result FROM \"group\""). Scan(&res) if db.Error != nil { return 0, db.Error