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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.JSON(http.StatusBadRequest, errorResponse(err))
|
ctx.JSON(http.StatusInternalServerError, errorResponse(err))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ func (server *Server) listAccounts(ctx *gin.Context) {
|
|||||||
|
|
||||||
accounts, err := server.store.ListAccounts(ctx, arg)
|
accounts, err := server.store.ListAccounts(ctx, arg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.JSON(http.StatusBadRequest, errorResponse(err))
|
ctx.JSON(http.StatusInternalServerError, errorResponse(err))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user