Fix: Broken category ID parsing for money transfers
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5d41188876
commit
95dd2414b5
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ func (a apiServer) handleTransferMoney(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.URL.Query().Has("category") {
|
if r.URL.Query().Has("category") {
|
||||||
if category, err = uuid.Parse(mux.Vars(r)["category"]); err != nil {
|
if category, err = uuid.Parse(r.URL.Query().Get("category")); err != nil {
|
||||||
a.errorResponse(w, err, "parsing category", http.StatusBadRequest)
|
a.errorResponse(w, err, "parsing category", http.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue