diff --git a/src/interactions/leaderAdd.js b/src/interactions/leaderAdd.js index f3a1cf28..fec4654e 100644 --- a/src/interactions/leaderAdd.js +++ b/src/interactions/leaderAdd.js @@ -27,12 +27,12 @@ const interactionLeaderAdd = async (bot, message) => { throw transcript('leaderAdd.invalidChannel') } - const taggedUserClubs = taggedUser.fields['Clubs'] || [] + const taggedUserClubs = taggedUser.person.fields['Clubs'] || [] if (taggedUserClubs.includes(recipientClub)) { throw transcript('leaderAdd.alreadyLeader') } - await airPatch('People', taggedUser.id, { + await airPatch('People', taggedUser.person.id, { Clubs: [...taggedUserClubs, recipientClub], })