Skip to content

Commit

Permalink
fix: correct fallback for display names
Browse files Browse the repository at this point in the history
  • Loading branch information
rutmanz committed Aug 30, 2024
1 parent 12f3e5f commit 924b6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function syncSlackMembers() {
for (const member of db_members) {
const slack_member = slack_members_lookup[member.email]
if (slack_member != null) {
const display_name = ((slack_member.profile?.display_name?.length ?? 0) > 0 ? slack_member.profile?.display_name : slack_member.name) ?? member.full_name
const display_name = ((slack_member.profile?.display_name?.length ?? 0) > 0 ? slack_member.profile?.display_name : slack_member.real_name) ?? member.full_name
await prisma.member.update({
where: { email: member.email },
data: {
Expand Down

0 comments on commit 924b6a7

Please sign in to comment.