Skip to content

Commit af005b9

Browse files
AchoArnoldCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 9f83cd7 commit af005b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/pkg/repositories/gorm_message_thread_repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func (repository *gormMessageThreadRepository) Store(ctx context.Context, thread
131131
})
132132
}
133133

134-
if result := db.Clauses(onConflict).Create(&thread); result.Error != nil {
134+
if result := db.Clauses(onConflict).Create(thread); result.Error != nil {
135135
return repository.tracer.WrapErrorSpan(span, stacktrace.Propagatef(result.Error, "cannot insert message thread with ID [%s]", thread.ID))
136136
}
137137
return nil

0 commit comments

Comments
 (0)