🐛 Fix deletion handle
This commit is contained in:
parent
070fd7bb6a
commit
69be460e13
@ -30,7 +30,7 @@ func (v *Server) BroadcastEvent(ctx context.Context, in *proto.EventInfo) (*prot
|
|||||||
for _, model := range database.AutoMaintainRange {
|
for _, model := range database.AutoMaintainRange {
|
||||||
switch model.(type) {
|
switch model.(type) {
|
||||||
default:
|
default:
|
||||||
tx.Delete(model, "account_id = ?", data)
|
tx.Delete(model, "account_id = ?", data.ID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tx.Commit()
|
tx.Commit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user