From 6b9ec051bdafa95dec44fa4e3f36e2c307d34b42 Mon Sep 17 00:00:00 2001 From: nochill Date: Sun, 3 Mar 2024 20:38:23 +0700 Subject: [PATCH] fix search response, to only server data --- api/location.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/location.go b/api/location.go index 98e95c1..d35fdf3 100644 --- a/api/location.go +++ b/api/location.go @@ -332,5 +332,5 @@ func (server *Server) searchLocations(ctx *gin.Context) { return } - ctx.JSON(http.StatusOK, searchRes) + ctx.JSON(http.StatusOK, searchRes.Hits) }