fix: add missing var name

This commit is contained in:
Jeffrey Duroyon
2020-05-11 01:05:54 +02:00
parent c6a2ae5447
commit 0d814788c0

View File

@@ -11,7 +11,7 @@ func (db *DatabasePostgreSQL) GetAllGames() ([]*model.Game, error) {
return nil, nil return nil, nil
} }
func (db *DatabasePostgreSQL) GetGameById(string) (*model.Game, error) { func (db *DatabasePostgreSQL) GetGameById(id string) (*model.Game, error) {
q := ` q := `
SELECT g.id, g.server_id, g.user_id, g.created_at, g.updated_at SELECT g.id, g.server_id, g.user_id, g.created_at, g.updated_at
FROM public.game g FROM public.game g