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

Update storage write error message for invalid JSON object values.

parent 7e2f60c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- WebSocket sessions no longer log the client IP and port number in error messages.
- Made Go and Lua runtime startup log messages consistent.
- All schema and query statements that use the '1970-01-01 00:00:00' constant now specify UTC timezone.
- Storage write error message now correctly indicates that values must be encoded JSON objects.

### Fixed
- CRON expressions for leaderboard and tournament resets now allow concurrent processing.
+1 −1
Original line number Diff line number Diff line
@@ -202,7 +202,7 @@ func (s *ApiServer) WriteStorageObjects(ctx context.Context, in *api.WriteStorag

		var maybeJSON map[string]interface{}
		if json.Unmarshal([]byte(object.GetValue()), &maybeJSON) != nil {
			return nil, status.Error(codes.InvalidArgument, "Object value must be JSON.")
			return nil, status.Error(codes.InvalidArgument, "Value must be a JSON object.")
		}
	}