From 3324919b72de96ec4755fb61a6842b4efee608f2 Mon Sep 17 00:00:00 2001 From: Eashwar Mohan Date: Mon, 29 Apr 2024 21:00:43 -0700 Subject: [PATCH] fix envvar access --- src/jobs/pollWeek.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jobs/pollWeek.ts b/src/jobs/pollWeek.ts index fbba95e..39ea7da 100644 --- a/src/jobs/pollWeek.ts +++ b/src/jobs/pollWeek.ts @@ -7,7 +7,7 @@ import type { Job } from './index.js'; const closeRMFPWeek = async (week: Week, client: Client) => { const guild = await client.guilds.fetch(process.env.GUILD_ID!); - const rmfpOwnerRole = await guild.roles.fetch(process.env.ROLE_ID!); + const rmfpOwnerRole = await guild.roles.fetch(process.env.RMFP_OWNER_ROLE_ID!); if (rmfpOwnerRole === null) { console.error(`[Close RMFP Week] No RMFP owner role was detected!`); return;