From 9f8105156c2d7c9508ab758aafdf57de1b6c398c Mon Sep 17 00:00:00 2001 From: rushikesh dhanwant Date: Sat, 25 Mar 2023 13:11:43 +0530 Subject: [PATCH] updated discord config getDID --- apps/discord-bot/src/config/config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/discord-bot/src/config/config.ts b/apps/discord-bot/src/config/config.ts index 3c895ce0..bcac6120 100644 --- a/apps/discord-bot/src/config/config.ts +++ b/apps/discord-bot/src/config/config.ts @@ -8,7 +8,7 @@ export const config = { compose: { nodeUrl: process.env.CERAMIC_NODE || "", graphqlUrl: process.env.CERAMIC_GRAPH || "", - did: process.env.CERAMIC_DID_KEY || "", + session: process.env.CERAMIC_SESSION || "", }, discord: { token: process.env.DISCORD_TOKEN || "", @@ -19,5 +19,6 @@ export const config = { }; export const getBotDid = async (): Promise => { - return config.compose.did; + const session = await DIDSession.fromSession(config.compose.session); + return session.did; }