diff --git a/src/global/commands/g.learn.ts b/src/global/commands/g.learn.ts index 9046bb996..68e18e7c8 100644 --- a/src/global/commands/g.learn.ts +++ b/src/global/commands/g.learn.ts @@ -89,7 +89,7 @@ export async function link( log.debug(F, `moodleUserData: ${JSON.stringify(moodleUserData.username)}`); - tripbotDb.users.update({ + const result = await tripbotDb.users.update({ where: { id: userData.id, }, @@ -98,6 +98,8 @@ export async function link( }, }); + log.debug(F, `result: ${JSON.stringify(result)}`); + return stripIndents`You have linked the moodle account - ${email} (${moodleUserData.username}) - with Discord account ${discordId} Use the /learn profile command to see the profile!`; }