Add support for removing custom field keys (#6362)

This commit is contained in:
WithoutPants
2025-12-04 07:28:06 +11:00
committed by GitHub
parent ee61fc879b
commit 0bc4faef2a
6 changed files with 98 additions and 11 deletions

View File

@@ -0,0 +1,12 @@
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
}