diff --git a/api/resolvers/invite.js b/api/resolvers/invite.js index af3a7c9c3..c8f81dfd7 100644 --- a/api/resolvers/invite.js +++ b/api/resolvers/invite.js @@ -77,6 +77,9 @@ export default { poor: async (invite, args, { me, models }) => { const user = await models.user.findUnique({ where: { id: invite.userId } }) return msatsToSats(user.msats) < invite.gift + }, + description: (invite, args, { me }) => { + return invite.userId === me?.id ? invite.description : undefined } } }