Centered Teapot

This commit is contained in:
Индекс Зиро 2025-02-20 11:18:52 +03:00
parent 21d002bce5
commit 6309648c40

View File

@ -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();