I have issues in above code
If an error returns from 'saveSpecialOrderV2' procedure, then we have to roll-back all changes, means 'saveAOrder' function inserted row must be roll-back and 'updateInventoryForNewOrder' update query also should be reverted. But when I run this code snippet it is not roll-backing. Is there any issue?
Also I am passing 'connection' to all functions, is it the right way. Will the functions uses same connection that we have begin transaction?
I have issues in above code If an error returns from 'saveSpecialOrderV2' procedure, then we have to roll-back all changes, means 'saveAOrder' function inserted row must be roll-back and 'updateInventoryForNewOrder' update query also should be reverted. But when I run this code snippet it is not roll-backing. Is there any issue?
Also I am passing 'connection' to all functions, is it the right way. Will the functions uses same connection that we have begin transaction?
I have following code in Node.js with typescript