lb-typeorm-transactional
v1.0.2
Published
typeorm-transactional
Downloads
4
Readme
How to use
import { Transaction, useTransaction } from 'lb-typeorm-transactional'
export class UserService {
@Transaction()
async updateInfo() {
await db.update(...)
await this.photoService.updatePhoto()
}
}
export class PhotoService {
@Transaction()
async updatePhoto(){
await db.update(...)
}
}