Skip to content

Commit

Permalink
refactor:確実に一行を返すように変更しました
Browse files Browse the repository at this point in the history
  • Loading branch information
shin0729 committed Apr 8, 2024
1 parent 60c0e17 commit 332495b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typing-server/api/repository/score.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func GetMaxScoreByUserID(ctx context.Context, client *ent.Client, userID uuid.UU
return nil, fmt.Errorf("invalid sort by parameter: %s", sortBy)
}

maxScore, err := query.First(ctx)
maxScore, err := query.Only(ctx)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 332495b

Please sign in to comment.