rf/replaces http.Status of api.GetAccount
This commit is contained in:
parent
3fad3f069b
commit
46e08be073
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user