fix(onboarding): could not create user (#848)

fix: onboarding not working
This commit is contained in:
ze0s 2023-04-17 20:56:17 +02:00 committed by GitHub
parent d03561d61c
commit 7f05dd1efd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 182 additions and 130 deletions

View file

@ -49,7 +49,7 @@ func (h downloadClientHandler) listDownloadClients(w http.ResponseWriter, r *htt
return
}
h.encoder.StatusResponse(ctx, w, clients, http.StatusOK)
h.encoder.StatusResponse(w, http.StatusOK, clients)
}
func (h downloadClientHandler) store(w http.ResponseWriter, r *http.Request) {
@ -66,7 +66,7 @@ func (h downloadClientHandler) store(w http.ResponseWriter, r *http.Request) {
return
}
h.encoder.StatusResponse(r.Context(), w, client, http.StatusCreated)
h.encoder.StatusResponse(w, http.StatusCreated, client)
}
func (h downloadClientHandler) test(w http.ResponseWriter, r *http.Request) {
@ -99,7 +99,7 @@ func (h downloadClientHandler) update(w http.ResponseWriter, r *http.Request) {
return
}
h.encoder.StatusResponse(r.Context(), w, client, http.StatusCreated)
h.encoder.StatusResponse(w, http.StatusCreated, client)
}
func (h downloadClientHandler) delete(w http.ResponseWriter, r *http.Request) {