From 3eee9755d4bb4fab6098f64498d8b26533108b69 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 29 Dec 2024 00:21:29 +0800 Subject: [PATCH] :sparkles: Fix listing destinations api --- pkg/internal/server/api/destinations_api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/internal/server/api/destinations_api.go b/pkg/internal/server/api/destinations_api.go index a90a3f8..4c105bd 100644 --- a/pkg/internal/server/api/destinations_api.go +++ b/pkg/internal/server/api/destinations_api.go @@ -11,8 +11,7 @@ func listDestination(c *fiber.Ctx) error { var destinations []models.BaseDestination for _, value := range services.DestinationsByIndex { var parsed models.BaseDestination - raw, _ := jsoniter.Marshal(value) - _ = jsoniter.Unmarshal(raw, &parsed) + _ = jsoniter.Unmarshal(value.Raw, &parsed) destinations = append(destinations, parsed) } return c.JSON(destinations)