Commit d0386bbe authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Fix parameter usage in leaderboard score set operator.

parent 2e45edf8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Fix error handling when attempting to write records to a tournament that does not exist.
- Fix JS runtime missing fields from leaderboards/tournaments get, list and write functions.
- Fix JS runtime ownerId field not working correctly in leaderboard/tournament records list functions.
- Fix parameter usage in leaderboard score set operator.

## [3.4.0] - 2021-07-08
### Added
+1 −1
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ func LeaderboardRecordWrite(ctx context.Context, logger *zap.Logger, db *sql.DB,
		subscoreAbs = 0
	case LeaderboardOperatorSet:
		opSQL = "score = $4, subscore = $5"
		filterSQL = " WHERE leaderboard_record.score <> $5 OR leaderboard_record.subscore <> $5"
		filterSQL = " WHERE leaderboard_record.score <> $4 OR leaderboard_record.subscore <> $5"
		scoreDelta = score
		subscoreDelta = subscore
		scoreAbs = score