File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/ServiceControl.Audit.Persistence.PostgreSQL/UnitOfWork Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ INSERT INTO processed_messages (
7070 cmd . Parameters . AddWithValue ( "conversation_id" , GetMetadata < string > ( "ConversationId" ) ) ;
7171 cmd . Parameters . AddWithValue ( "status" , ( int ) ( GetMetadata < bool > ( "IsRetried" ) ? MessageStatus . ResolvedSuccessfully : MessageStatus . Successful ) ) ;
7272
73+ await cmd . PrepareAsync ( cancellationToken ) ;
7374 await cmd . ExecuteNonQueryAsync ( cancellationToken ) ;
7475 }
7576
@@ -96,6 +97,7 @@ INSERT INTO saga_snapshots (
9697 cmd . Parameters . AddWithValue ( "endpoint" , sagaSnapshot . Endpoint ?? ( object ) DBNull . Value ) ;
9798 cmd . Parameters . AddWithValue ( "processed_at" , sagaSnapshot . ProcessedAt ) ;
9899
100+ await cmd . PrepareAsync ( cancellationToken ) ;
99101 await cmd . ExecuteNonQueryAsync ( cancellationToken ) ;
100102 }
101103
@@ -116,6 +118,7 @@ INSERT INTO known_endpoints (
116118 cmd . Parameters . AddWithValue ( "host" , knownEndpoint . Host ?? ( object ) DBNull . Value ) ;
117119 cmd . Parameters . AddWithValue ( "last_seen" , knownEndpoint . LastSeen ) ;
118120
121+ await cmd . PrepareAsync ( cancellationToken ) ;
119122 await cmd . ExecuteNonQueryAsync ( cancellationToken ) ;
120123 }
121124}
You can’t perform that action at this time.
0 commit comments