refactor(httpx): rename WriteInternal to WriteInternalError
This commit is contained in:
@@ -54,7 +54,7 @@ func (h *UserHandler) Create(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
httpx.WriteInternal(w, requestID)
|
||||
httpx.WriteInternalError(w, requestID)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ func (h *UserHandler) Me(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
httpx.WriteInternal(w, requestID)
|
||||
httpx.WriteInternalError(w, requestID)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user