We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when use cli - createAdminUser, AdminUserService is registered(or injected) twice. In constructor of adminUserService,
constructor(connection, entityManager) { this.connection = connection; this.entityManager = entityManager; connection.subscribers.push(this); console.log('registered') }
I made logger like above, and it is printed twice
because the AdminUserService is registered twice, subscribers are registered twice and finally beforeInsert is called twice
beforeInsert
I don't know why this happened. Because of the above issue, hashPassword is called twice.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when use cli - createAdminUser, AdminUserService is registered(or injected) twice.
In constructor of adminUserService,
I made logger like above, and it is printed twice
because the AdminUserService is registered twice, subscribers are registered twice and finally
beforeInsert
is called twiceI don't know why this happened. Because of the above issue, hashPassword is called twice.
The text was updated successfully, but these errors were encountered: