From c9f24dd0fd633da90f86800758bbd42701c6d249 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 19 Jan 2024 16:23:03 +0100 Subject: [PATCH] api: Fix bad cast operation --- api/zones.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/zones.go b/api/zones.go index 3389cb8..bb5bedf 100644 --- a/api/zones.go +++ b/api/zones.go @@ -227,7 +227,7 @@ func serviceIdHandler(c *gin.Context) { // @Router /domains/{domainId}/zone/{zoneId}/{subdomain}/services/{serviceId} [get] func getZoneService(c *gin.Context) { zone := c.MustGet("zone").(*happydns.Zone) - serviceid := c.MustGet("serviceid").([]byte) + serviceid := c.MustGet("serviceid").(happydns.Identifier) subdomain := c.MustGet("subdomain").(string) c.JSON(http.StatusOK, zone.FindSubdomainService(subdomain, serviceid))