odavid / typeorm-transactional-cls-hooked

A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS
MIT License
524 stars 86 forks source link

Importing reflect metadata #11

Closed irissoftworks closed 5 years ago

irissoftworks commented 5 years ago

Thanks for the amazing work with this package.

One quick question, I realized at the index: import 'reflect-metadata'

This may cause issues if it is included twice, and the official typeorm doc recommends importing it.

I was wondering if importing reflect-metadata should be kept as consumer responsibility, or alternatively could the doc be updated to point out the fact that it is included already ?

odavid commented 5 years ago

@irissoftworks - Sorry for that. Removed it.