Skip to content
New issue

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

[Bug] Adding multiple employees accept only the second employee in the list #7635

Open
coderNadir opened this issue Mar 2, 2024 · 0 comments
Assignees
Labels

Comments

@coderNadir
Copy link
Contributor

coderNadir commented Mar 2, 2024

Adding multiple employees accept only the second employee in the list

Details:

BRANCH: feat/mikro-orm-query-support

ORM: typeorm

DB: MySQL

SEEDED DATA: YES

If we tried to add multiple employees only the second one got added in the list will be registered and can be seen within the employees list from the dashboard admin at http://localhost:4200/#/pages/employees well for the other added employees we still have them in the user table but they aren't added and saved in the employee table.

How to reproduce:

Add 2 employees tester-1@ever.co AND tester-2@ever.co try to login with the credentials and see that you're still able to login with both registered emails, so for the tester-1@ever.co you can not see the timer on the menu nav and also if you search it on the employees list from the admin dashboard you can't find it also if you do some query on the database on the USER table you can find a record with the email: tester-1@ever.co but if you tried to search on EMPLOYEE table you can't find it.

Finally for the second employee which is tester-2@ever.co everything is working fine for timer, employee list, and the time tracking can be seen on admin dashboard (Time Tracking).

Tested also by adding 3 employees and only the second employee get registered as an employee.

I got this logs on the backend terminal too:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants