mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-13 17:29:54 +01:00
Clear user appointments on unregister
This commit is contained in:
10
ober.go
10
ober.go
@@ -484,8 +484,14 @@ func UnRegister(ctx *fasthttp.RequestCtx) {
|
||||
err = DeleteUserFromAnimes(register.MalID)
|
||||
if err != nil {
|
||||
if err != nutsdb.ErrBucketEmpty {
|
||||
ctx.WriteString(err.Error())
|
||||
ctx.SetStatusCode(fasthttp.StatusNotFound)
|
||||
addErrorToCtx(ctx, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
err = DeleteUserFromAppointmens(register.Username)
|
||||
if err != nil {
|
||||
if err != nutsdb.ErrBucketEmpty {
|
||||
addErrorToCtx(ctx, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user