Skip to content

Conversation

Tpuljak
Copy link
Contributor

@Tpuljak Tpuljak commented Apr 10, 2025

Currently, setting PeriodsCount in the PastUsage method throws a marshaling error because it's typed as int in JSON.

json: cannot unmarshal number into Go value of type strin

Added the ,string json tag which should turn the PeriodsCount into a string so that it can be Unmarshalled into map[string]string.

Signed-off-by: Toma Puljak <toma.puljak@hotmail.com>
@vincent-pochet vincent-pochet merged commit e00baa2 into getlago:main Apr 17, 2025
1 check passed
@vincent-pochet
Copy link
Contributor

Thank you @Tpuljak for this pull request. We will rework the query params, to allow support of int,
but in the meantime, this fix is great. It will be part of the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants