mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
make language an optional parameter for createUser and do not set it on the elopage webhook
This commit is contained in:
parent
2aba37e60c
commit
a44a3ee6d0
@ -15,7 +15,7 @@ export default class CreateUserArgs {
|
|||||||
password: string
|
password: string
|
||||||
|
|
||||||
@Field(() => String)
|
@Field(() => String)
|
||||||
language: string
|
language?: string
|
||||||
|
|
||||||
@Field(() => Int, { nullable: true })
|
@Field(() => Int, { nullable: true })
|
||||||
publisherId: number
|
publisherId: number
|
||||||
|
|||||||
@ -280,7 +280,7 @@ export class UserResolver {
|
|||||||
// default int publisher_id = 0;
|
// default int publisher_id = 0;
|
||||||
|
|
||||||
// Validate Language (no throw)
|
// Validate Language (no throw)
|
||||||
if (!isLanguage(language)) {
|
if (!language || !isLanguage(language)) {
|
||||||
language = DEFAULT_LANGUAGE
|
language = DEFAULT_LANGUAGE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -150,7 +150,6 @@ export const elopageWebhook = async (req: any, res: any): Promise<void> => {
|
|||||||
firstName,
|
firstName,
|
||||||
lastName,
|
lastName,
|
||||||
password,
|
password,
|
||||||
language: 'default',
|
|
||||||
publisherId: loginElopgaeBuy.publisherId,
|
publisherId: loginElopgaeBuy.publisherId,
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user