Skip to content

Commit

Permalink
Part 2 of #57
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Aug 27, 2021
1 parent d8cf50e commit d1c1a95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/src/discord/staff.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,10 @@ async function checkForForceApprovedApplications() {
setInterval(checkForForceApprovedApplications, 8 * 1000);

async function onApplicationApproved(application, message) {
let event = deAirtable(await base("Events").find(application.event[0]));
if (!event.active) return console.warn("Event is no longer active but an application was approved");
await base("Staff Applications").update(application.id, { "Approved": true });

// then set roles etc - DM?

let event = deAirtable(await base("Events").find(application.event[0]));
let guild = await client.guilds.fetch(process.env.STAFFAPPS_GUILD_ID);
let member = await findMember(guild, application.discord_tag);

Expand Down

0 comments on commit d1c1a95

Please sign in to comment.