From d83df434119c0f9503e0e7a046dbf0c5e6cc1937 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 11 Feb 2024 23:25:43 -0500 Subject: [PATCH] fix: encoding wrong version --- api/webhook_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/webhook_manager.go b/api/webhook_manager.go index e8c230c..f8c72c2 100644 --- a/api/webhook_manager.go +++ b/api/webhook_manager.go @@ -62,7 +62,7 @@ func (whm *WebhookManager) sendWebhooks(request interface{}, r *http.Request) { ID uint `json:"id"` }{ID: app.ID} - payloadBytes, err = json.Marshal(request) + payloadBytes, err = json.Marshal(rawMap) if err != nil { whm.logger.Error("Failed to marshal payload", zap.Error(err)) return