Aliheym / typeorm-transactional

A Transactional Method Decorator for TypeORM that uses Async Local Storage or cls-hooked to handle and propagate transactions between different repositories and service methods.
MIT License
201 stars 27 forks source link

[question] save record after a commit or rollback #35

Open juliokriger opened 1 year ago

juliokriger commented 1 year ago

Hi! Thanks for this wonderful library. It helps me a lot.

I have a question.

I need to save a record on a log table after the transaction is committed or rollbacked.

Is it possible to do this? How can I do this?

Thanks!

AlmogCohen commented 1 year ago

I believe you should be able to use the hooks mechanism for that