update atlas, remove unnecessary code

This commit is contained in:
dpurbosakti
2025-12-09 12:50:24 +07:00
parent 09cc996dee
commit 7ef090bd17
2 changed files with 8 additions and 11 deletions
@@ -69,11 +69,6 @@ func (obj myBase) Update(w http.ResponseWriter, r *http.Request) {
return
}
authInfo, err := pa.GetAuthInfo(r)
if err != nil {
rw.WriteJSON(w, http.StatusUnauthorized, d.IS{"message": err.Error()}, nil)
}
dto.Id = uint(id)
dto.AuthInfo = *authInfo
res, err := u.Update(dto)