🐛 Fix deletion
This commit is contained in:
parent
ba6e827cf8
commit
cc47ff4583
@ -29,7 +29,7 @@ func (v *App) BroadcastEvent(ctx context.Context, in *proto.EventInfo) (*proto.E
|
|||||||
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