mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Their was an error in the UserResolver due to a check undefined and false would fall out of the update change it to !== undefined.
This commit is contained in:
parent
640c5ec88d
commit
d8def24e0c
@ -537,7 +537,7 @@ export class UserResolver {
|
||||
await queryRunner.startTransaction('READ UNCOMMITTED')
|
||||
|
||||
try {
|
||||
if (coinanimation) {
|
||||
if (coinanimation !== undefined) {
|
||||
queryRunner.manager
|
||||
.getCustomRepository(UserSettingRepository)
|
||||
.setOrUpdate(userEntity.id, Setting.COIN_ANIMATION, coinanimation.toString())
|
||||
|
||||
@ -18,7 +18,7 @@ export class UserSettingRepository extends Repository<UserSetting> {
|
||||
let entity = await this.findOne({ userId: userId, key: key })
|
||||
|
||||
if (!entity) {
|
||||
entity = new UserSetting()
|
||||
entity = this.create()
|
||||
entity.userId = userId
|
||||
entity.key = key
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user