Skip to content

Commit

Permalink
Switch to less_achievements db table to align with score-service (#56)
Browse files Browse the repository at this point in the history
* 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 785e53c.
  • Loading branch information
cmyui authored May 26, 2024
1 parent 3102a99 commit 327f1c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/v1/user_achievements.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 327f1c6

Please sign in to comment.