rf/replaces http.Status of api.GetAccount

This commit is contained in:
itsscb 2023-09-23 23:22:33 +02:00
parent 3fad3f069b
commit 46e08be073

View File

@ -74,7 +74,7 @@ func (server *Server) getAccount(ctx *gin.Context) {
return
}
ctx.JSON(http.StatusBadRequest, errorResponse(err))
ctx.JSON(http.StatusInternalServerError, errorResponse(err))
return
}
@ -101,7 +101,7 @@ func (server *Server) listAccounts(ctx *gin.Context) {
accounts, err := server.store.ListAccounts(ctx, arg)
if err != nil {
ctx.JSON(http.StatusBadRequest, errorResponse(err))
ctx.JSON(http.StatusInternalServerError, errorResponse(err))
return
}