mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
reimplement publisherId on updateUserInfos
This commit is contained in:
parent
4fccc19b68
commit
540cbd0e1f
@ -17,6 +17,9 @@ export default class UpdateUserInfosArgs {
|
|||||||
@Field({ nullable: true })
|
@Field({ nullable: true })
|
||||||
language?: string
|
language?: string
|
||||||
|
|
||||||
|
@Field({ nullable: true })
|
||||||
|
publisherId?: number
|
||||||
|
|
||||||
@Field({ nullable: true })
|
@Field({ nullable: true })
|
||||||
password?: string
|
password?: string
|
||||||
|
|
||||||
|
|||||||
@ -466,6 +466,7 @@ export class UserResolver {
|
|||||||
description,
|
description,
|
||||||
username,
|
username,
|
||||||
language,
|
language,
|
||||||
|
publisherId,
|
||||||
password,
|
password,
|
||||||
passwordNew,
|
passwordNew,
|
||||||
coinanimation,
|
coinanimation,
|
||||||
@ -526,6 +527,11 @@ export class UserResolver {
|
|||||||
loginUser.privKey = encryptedPrivkey
|
loginUser.privKey = encryptedPrivkey
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Save publisherId only if Elopage is not yet registered
|
||||||
|
if (publisherId && !(await this.hasElopage(context))) {
|
||||||
|
loginUser.publisherId = publisherId
|
||||||
|
}
|
||||||
|
|
||||||
const queryRunner = getConnection().createQueryRunner()
|
const queryRunner = getConnection().createQueryRunner()
|
||||||
await queryRunner.connect()
|
await queryRunner.connect()
|
||||||
await queryRunner.startTransaction('READ UNCOMMITTED')
|
await queryRunner.startTransaction('READ UNCOMMITTED')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user