From 82fbc1f50d46cfa0ef9f1116cd5ef99ef364c151 Mon Sep 17 00:00:00 2001 From: Hourunze1997 <5427081+maomao19970922@user.noreply.gitee.com> Date: Mon, 14 Oct 2024 15:52:06 +0800 Subject: [PATCH] =?UTF-8?q?pr=20assignee=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/dto/cloud_event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/dto/cloud_event.go b/models/dto/cloud_event.go index cb9f52e..23b3998 100644 --- a/models/dto/cloud_event.go +++ b/models/dto/cloud_event.go @@ -39,7 +39,7 @@ func (event CloudEvents) Message() ([]byte, error) { func (event CloudEvents) SaveDb() error { eventDO := event.toCloudEventDO() result := postgresql.DB().Clauses(clause.OnConflict{ - Columns: []clause.Column{{Name: "event_id"}, {Name: "source"}}, + Columns: []clause.Column{{Name: "event_id"}}, DoUpdates: clause.AssignmentColumns([]string{"event_id", "source_url", "source_group", "summary", "data_schema", "data_content_type", "spec_version", "time", "user", "data_json", "title", "related_users", "mail_title", "mail_summary"}),