Altinn / altinn-notifications

Altinn platform microservice for handling notifications (mail, sms, etc)
MIT License
3 stars 3 forks source link

Ensure notification orders are placed within transaction #475

Closed martinothamar closed 3 months ago

martinothamar commented 5 months ago

Description

I noticed that orders are not included in the transaction when executed. When CreateCommand is invoked on NpgsqlDataSource, it is creating a new connection

I also awaited each secondary insert as well, as the connection itself is not threadsafe

Related Issue(s)

N/A

Verification

Documentation