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

@ -45,11 +45,11 @@ func (h notificationHandler) list(w http.ResponseWriter, r *http.Request) {
list, _, err := h.service.Find(ctx, domain.NotificationQueryParams{})
if err != nil {
h.encoder.StatusNotFound(ctx, w)
h.encoder.StatusNotFound(w)
return
}
h.encoder.StatusResponse(ctx, w, list, http.StatusOK)
h.encoder.StatusResponse(w, http.StatusOK, list)
}
func (h notificationHandler) store(w http.ResponseWriter, r *http.Request) {
@ -69,7 +69,7 @@ func (h notificationHandler) store(w http.ResponseWriter, r *http.Request) {
return
}
h.encoder.StatusResponse(ctx, w, filter, http.StatusCreated)
h.encoder.StatusResponse(w, http.StatusCreated, filter)
}
func (h notificationHandler) update(w http.ResponseWriter, r *http.Request) {
@ -89,7 +89,7 @@ func (h notificationHandler) update(w http.ResponseWriter, r *http.Request) {
return
}
h.encoder.StatusResponse(ctx, w, filter, http.StatusOK)
h.encoder.StatusResponse(w, http.StatusOK, filter)
}
func (h notificationHandler) delete(w http.ResponseWriter, r *http.Request) {
@ -104,7 +104,7 @@ func (h notificationHandler) delete(w http.ResponseWriter, r *http.Request) {
// return err
}
h.encoder.StatusResponse(ctx, w, nil, http.StatusNoContent)
h.encoder.StatusResponse(w, http.StatusNoContent, nil)
}
func (h notificationHandler) test(w http.ResponseWriter, r *http.Request) {