Skip to content

Commit

Permalink
✨ Fix listing destinations api
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSheep2Code committed Dec 28, 2024
1 parent 9f0bce8 commit 3eee975
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/internal/server/api/destinations_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3eee975

Please sign in to comment.