permit schema update
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user