From cc47ff45831815a1e633c84226a785a7abb263d2 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 10 Mar 2025 21:44:15 +0800 Subject: [PATCH] :bug: Fix deletion --- pkg/internal/grpc/services.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/grpc/services.go b/pkg/internal/grpc/services.go index 75decf7..18cef7f 100644 --- a/pkg/internal/grpc/services.go +++ b/pkg/internal/grpc/services.go @@ -29,7 +29,7 @@ func (v *App) BroadcastEvent(ctx context.Context, in *proto.EventInfo) (*proto.E for _, model := range database.AutoMaintainRange { switch model.(type) { default: - tx.Delete(model, "account_id = ?", data) + tx.Delete(model, "account_id = ?", data.ID) } } tx.Commit()