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;