diff --git a/api/user.go b/api/user.go index b5cd1b9..c181505 100644 --- a/api/user.go +++ b/api/user.go @@ -177,10 +177,10 @@ func (server *Server) loginUser(ctx *gin.Context) { RefreshTokenExpiresAt: refreshTokenPayload.ExpiredAt, } - res := userLoginResponse{ + res := BaseApiRespond("succes", userLoginResponse{ UserTokenResponse: tokenResponse, UserMerchantResponse: newUserMerchantResponse(user), - } + }) ctx.JSON(http.StatusOK, res) }