[이민권] 계정 삭제

- 계정 삭제 취소 기능 추가
This commit is contained in:
2024-01-10 17:35:00 +09:00
parent 763b0fc4bd
commit d8713298c4

View File

@ -687,6 +687,7 @@ func (sh *serviceDescription) authorize(w http.ResponseWriter, r *http.Request)
w.WriteHeader(http.StatusInternalServerError)
return
}
if link["_ts"] != nil {
delts := link["_ts"].(primitive.Timestamp)
if !delts.IsZero() {
// 삭제된 계정. 삭제 되었다고 알려주자
@ -694,6 +695,7 @@ func (sh *serviceDescription) authorize(w http.ResponseWriter, r *http.Request)
w.WriteHeader(http.StatusUnauthorized)
return
}
}
linkid := link["_id"].(primitive.ObjectID)
newaccid := primitive.NewObjectID()