mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
12 lines
310 B
Go
12 lines
310 B
Go
package api
|
|
|
|
import "github.com/stashapp/stash/pkg/models"
|
|
|
|
func handleUpdateCustomFields(input models.CustomFieldsInput) models.CustomFieldsInput {
|
|
ret := input
|
|
// convert json.Numbers to int/float
|
|
ret.Full = convertMapJSONNumbers(ret.Full)
|
|
ret.Partial = convertMapJSONNumbers(ret.Partial)
|
|
|
|
return ret
|
|
}
|