Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenkii committed Nov 12, 2023
2 parents 46d089f + b9408b0 commit fc5059a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function checkIsVatger(discordId: string) {

if (!vatgerApiData.is_vatger_fullmember) {
return false;
} else
}

await userModel.updateOne({
discordId: _user.discordId,
Expand All @@ -75,6 +75,8 @@ async function checkIsVatger(discordId: string) {
}
});

console.log(`Added VATGER Role to ${_user.cid}`);

const guildMember = await findGuildMemberByDiscordID(discordId);
await guildMember?.roles.add(Config.VATGER_MEMBER_ROLE_ID);

Expand Down

0 comments on commit fc5059a

Please sign in to comment.