Skip to content

Commit 145e5ff

Browse files
authored
Merge pull request #533 from dhruvbehl/fix/catalog-contract-messages-duplicate-crash
fix: prevent catalog crash on duplicate business event channels
2 parents a13cc6d + 6f7d86b commit 145e5ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mdl/catalog/builder_contract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (b *Builder) buildContractMessages() error {
138138
}
139139

140140
stmt, err := b.tx.Prepare(`
141-
INSERT INTO contract_messages (Id, ServiceId, ServiceQualifiedName,
141+
INSERT OR IGNORE INTO contract_messages (Id, ServiceId, ServiceQualifiedName,
142142
ChannelName, OperationType, MessageName, Title, ContentType, PropertyCount,
143143
ModuleName, ProjectId, SnapshotId, SnapshotDate, SnapshotSource)
144144
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

0 commit comments

Comments
 (0)