Centered Teapot
This commit is contained in:
parent
21d002bce5
commit
6309648c40
@ -39,7 +39,7 @@ public class EmployeeServiceImpl implements EmployeeService {
|
||||
|
||||
public ResponseEntity<Object> openTheDoor(Long code, Authentication auth) {
|
||||
try {
|
||||
if (codeRepository.existsByValue(Long.valueOf(code))) {
|
||||
if (codeRepository.existsByValue(code)) {
|
||||
Employee employee = employeeRepository.findByLogin(auth.getName());
|
||||
if(employee.getIsQREnabled()) {
|
||||
Entrance entrance = new Entrance();
|
||||
|
Loading…
x
Reference in New Issue
Block a user