From 833f5b02d5a4d8cb57490c9d8ae4b53aed9cd627 Mon Sep 17 00:00:00 2001 From: Yash Mehrotra Date: Mon, 26 Aug 2024 14:39:50 +0530 Subject: [PATCH] chore: update topology on conflict clause --- models/topology.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/topology.go b/models/topology.go index b799d721..7416ea1f 100644 --- a/models/topology.go +++ b/models/topology.go @@ -33,7 +33,7 @@ func (t Topology) OnConflictClause() clause.OnConflict { Exprs: []clause.Expression{ clause.And( clause.Eq{Column: "deleted_at"}, - clause.Eq{Column: "agent_id", Value: uuid.Nil.String()}, + clause.Expr{SQL: "agent_id = '00000000-0000-0000-0000-000000000000'::uuid", WithoutParentheses: true}, ), }, },