Last active
February 11, 2021 18:38
-
-
Save alphamikle/b2f19500c2cded94217b0344e9c3d3c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injectable() | |
export class AppService extends TransactionFor<AppService> /* <-- step 1 */ { | |
constructor( | |
@InjectRepository(User) | |
private readonly userRepository: Repository<User>, | |
@InjectRepository(Purse) | |
private readonly purseRepository: Repository<Purse>, | |
private readonly appServiceV2: AppServiceV2, | |
moduleRef: ModuleRef, // <-- step 2 | |
) { | |
super(moduleRef); | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment