1.0.2 • Published 5 years ago
lb-typeorm-transactional v1.0.2
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(...)
}
}