From 1c062795c68b58a54b91b3ff028e39e6ed10fbdc Mon Sep 17 00:00:00 2001 From: Albin Ramovic Date: Wed, 29 Jan 2025 10:31:59 +0100 Subject: [PATCH] add TODO - renewal of trusted subjects --- lib/plugin.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/plugin.js b/lib/plugin.js index 7daaabe..cf6e67d 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -7,6 +7,7 @@ cds.on("bootstrap", async (app) => { cds.context = {}; } + // TODO: Renewal of trustedSubjects every 7 days ? const trustedSubjects = await getTrustedSubjects(); cds.context.trustedSubjects = trustedSubjects; @@ -36,8 +37,4 @@ cds.on("bootstrap", async (app) => { }); }); -cds.on("shutdown", () => { - delete cds.context.trustedSubjects -}); - module.exports = cds.server;