Skip to content

Commit

Permalink
fix(packages/graphql): add failure message if old account not found i…
Browse files Browse the repository at this point in the history
…n migration
  • Loading branch information
rschlaefli committed Feb 10, 2024
1 parent 1d45e05 commit a8b3552
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/graphql/src/services/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ export async function requestMigrationToken(
userData.email,
process.env.LISTMONK_TEMPLATE_MIGRATION_EMAIL_NOT_AVAILABLE as string
)
await sendTeamsNotifications(
'graphql/migration',
`[${process.env.NODE_ENV}] Migration Failed for E-Mail ${args.email} in v2 with Edu-ID ${userData.email} (v3). V2 account not found.`
)

throw new Error(`No matching V2 user found for ${args.email}`)
}
Expand Down

0 comments on commit a8b3552

Please sign in to comment.