From 327f1c6eca14bd1c6b0e4b542a95e423912165fa Mon Sep 17 00:00:00 2001 From: Josh Smith Date: Sun, 26 May 2024 14:59:09 -0400 Subject: [PATCH] Switch to `less_achievements` db table to align with score-service (#56) * Switch to less_achievements db table to align with score-service * Remove the old "rank requests" feature (#57) * Revert "Remove the old "rank requests" feature (#57)" This reverts commit 785e53c3eca7f39fb67294f5d89d030be6774eb1. --- app/v1/user_achievements.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/v1/user_achievements.go b/app/v1/user_achievements.go index 679d8ab..b9e5ac7 100644 --- a/app/v1/user_achievements.go +++ b/app/v1/user_achievements.go @@ -24,7 +24,7 @@ func LoadAchievementsEvery(db *sqlx.DB, d time.Duration) { for { achievs = nil err := db.Select(&achievs, - "SELECT id, name, description, icon FROM achievements ORDER BY id ASC") + "SELECT id, name, desc AS description, file AS icon FROM less_achievements ORDER BY id ASC") if err != nil { slog.Error("LoadAchievements error", "error", err.Error()) common.GenericError(err)