Skip to content

Commit

Permalink
fix: ignore empty usernames in noco integration
Browse files Browse the repository at this point in the history
  • Loading branch information
trickypr committed Feb 17, 2025
1 parent 73c1914 commit 29800d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nocodb-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ export async function performRoleUpdate(

export async function onRowUpdate(row: MembershipDBItemWithDiscordGuildMember) {
const discord = row.discord;
if (!discord) return

await performRoleUpdate(discord, MEMBER_ROLE_ID, "add");
if (row.item.life_member) {
await performRoleUpdate(discord, LIFE_MEMBER_ROLE_ID, "add");
Expand Down

0 comments on commit 29800d4

Please sign in to comment.