Skip to content

Commit

Permalink
fix envvar access
Browse files Browse the repository at this point in the history
  • Loading branch information
eashwar committed Apr 30, 2024
1 parent 036da2d commit 3324919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/pollWeek.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3324919

Please sign in to comment.