Fix butlerd RPC -32700: normalize integral JSON floats to ints

Godot JSON.parse decodes every JSON number as a float, so integer ids
(7670) round-trip through JSON.stringify as 7670.0, which Go's int64
fields reject with RPC error -32700. Normalize at the parse boundary so
profile/game/upload ids serialize correctly.

Also drop the nonexistent 'fresh' parameter from Fetch.ProfileOwnedKeys.
This commit is contained in:
Jose Falanga 2026-08-05 22:08:24 -03:00
parent 5d686a5b02
commit 408991a693
2 changed files with 33 additions and 7 deletions

View file

@ -84,7 +84,7 @@ func _load_library(caching_flags: int = Cache.FLAGS.LOAD | Cache.FLAGS.SAVE) ->
return []
logger.info("Fetching itch.io library...")
var owned: Array = await itch.get_owned_games(false)
var owned: Array = await itch.get_owned_games()
var caves: Array = await itch.get_caves()
var caves_by_game_id := {}