From e42c3df2105112b80b10d7ffddd01e1219350b78 Mon Sep 17 00:00:00 2001 From: Samuel Andert Date: Wed, 23 Aug 2023 09:30:08 +0200 Subject: [PATCH] add dynamic env vars --- resolvers/projects.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resolvers/projects.js b/resolvers/projects.js index bd8ed94..33ac7dc 100644 --- a/resolvers/projects.js +++ b/resolvers/projects.js @@ -10,7 +10,7 @@ const client = createClient({ keepAlive: 30000, webSocketImpl: WebSocket, connectionParams: async () => { - return { access_token: 'Mb3NMqKwiyesxDeJRTD72VZZ6f4t3mBr' }; + return { access_token: process.env.DIRECTUS_API }; }, }); @@ -25,8 +25,10 @@ client.subscribe( id text date_updated - user_updated { + user_updated { first_name + last_name + email } } }