🐛 Fix deletion

This commit is contained in:
LittleSheep 2025-03-10 21:44:15 +08:00
parent ba6e827cf8
commit cc47ff4583

View File

@ -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()