permit schema update

This commit is contained in:
2025-03-01 11:02:45 +05:30
parent d2f3ebdb46
commit 782870e1fe
3 changed files with 25 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ export async function getPermitHandler(req: FastifyRequest, res: FastifyReply) {
try {
const permit = await getPermit(permitId, req.user.tenantId);
if (permit === null)
return res.code(404).send({ error: "resource not foound" });
return res.code(404).send({ error: "resource not found" });
return res.code(200).send(permit);
} catch (err) {