minder
minder copied to clipboard
Ensure a transaction is open in `ReplaceAllProperties` routine
This routine must ensure that a transaction is open before performing the delete/insert sequence of statements.
I looked into this issue and I believe it has already been fixed? I am seeing that there is a call to get a transaction on line 180.
I am new to the repo so if I am wrong I apologize!
getStoreOrTransaction doesn't ensure that there is a transaction in progress; if there is no transaction in progress, it will return a db.Store, which will be in Postgres' auto-transaction-for-each-statement mode.
(This is based on reading #4459)