change response status code to 410
All checks were successful
Build and push image for doorman / docker (push) Successful in 52s
Build and push image for doorman / deploy-portainer (push) Successful in 25s

This commit is contained in:
Martin Dimitrov 2024-02-27 21:59:21 -08:00
parent 8e73fd012c
commit f0ab000415

View File

@ -9,7 +9,7 @@ export const TimeLockVerify: RequestHandler = async (req, res, next) => {
if (timeHr >= timeLock[0] || timeHr <= timeLock[1]) {
res.status(401).json({ status: IDoorStatus.TIME_LOCK, msg: 'Sorry! This door is locked at this hour, try again later' });
res.status(410).json({ status: IDoorStatus.TIME_LOCK, msg: 'Sorry! This door is locked at this hour, try again later' });
return;
}