Add utility methods for handling queue handler results and payload mapping

This commit is contained in:
Achim Rohn
2026-04-08 14:50:45 +02:00
parent f49871cc1c
commit a383129abb
2 changed files with 61 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func StructToMap(data interface{}) (JSONB, error) {
return result, nil
}
func MapToStruct(data JSONB, result interface{}) error {
func MapToStruct(data JSONB, result any) error {
// Marshal map to JSON bytes
jsonBytes, err := json.Marshal(data)
if err != nil {