Integrated the isEnabled field into the click action

This commit is contained in:
2022-12-28 19:24:18 +01:00
parent 39e366798f
commit 1bbac8bb6b

View File

@ -10,6 +10,7 @@ app.get("/", async (req, res) => {
const link = await getLinkByAccess(res.locals.accessId, currentDomain);
if (!link) return sendNotFound(res);
if (!link.isEnabled) return sendNotFound(res);
const module = getModule(link.type);
if (!module) return sendNotFound(res);