Skip to content

Commit

Permalink
pr assignee 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Hourunze1997 committed Oct 14, 2024
1 parent 39a64d6 commit 82fbc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/dto/cloud_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}),
Expand Down

0 comments on commit 82fbc1f

Please sign in to comment.