feat(medusa): Expose an activeManager_ getter in TransactionBaseService (#3256)

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2023-02-16 10:26:23 +00:00
1 parent 75924b682f
commit aefe5aa133
68 files changed
+514 -839

No files matched your search

+2 -4
View File
@@ -16,15 +16,13 @@ type InjectedDependencies = {
* Can authenticate a user based on email password combination
*/
class AuthService extends TransactionBaseService {
protected manager_: EntityManager
protected transactionManager_: EntityManager | undefined
protected readonly userService_: UserService
protected readonly customerService_: CustomerService
constructor({ manager, userService, customerService }: InjectedDependencies) {
constructor({ userService, customerService }: InjectedDependencies) {
// eslint-disable-next-line prefer-rest-params
super(arguments[0])
this.manager_ = manager
this.userService_ = userService
this.customerService_ = customerService
}