mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
catch error on createUser and log them
This commit is contained in:
parent
c2a3866ae5
commit
5335d12802
@ -145,14 +145,19 @@ export const elopageWebhook = async (req: any, res: any): Promise<void> => {
|
||||
randomBytes(8).toString('hex') + email + '!aA1' + randomBytes(8).toString('hex')
|
||||
|
||||
const userResolver = new UserResolver()
|
||||
userResolver.createUser({
|
||||
email,
|
||||
firstName,
|
||||
lastName,
|
||||
password,
|
||||
language: 'default',
|
||||
publisherId: loginElopgaeBuy.publisherId,
|
||||
})
|
||||
try {
|
||||
await userResolver.createUser({
|
||||
email,
|
||||
firstName,
|
||||
lastName,
|
||||
password,
|
||||
language: 'default',
|
||||
publisherId: loginElopgaeBuy.publisherId,
|
||||
})
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`Could not create User for ${email}. Following Error occured:`, error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user