Merge pull request #1120 from gradido/bugfix_coinanimation_update_only_send_for_true

Error for removing coin animation
This commit is contained in:
Hannes Heine 2021-11-23 00:09:45 +01:00 committed by GitHub
commit 13022a9097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -554,7 +554,7 @@ export class UserResolver {
await queryRunner.startTransaction('READ UNCOMMITTED')
try {
if (coinanimation) {
if (coinanimation !== null && coinanimation !== undefined) {
queryRunner.manager
.getCustomRepository(UserSettingRepository)
.setOrUpdate(userEntity.id, Setting.COIN_ANIMATION, coinanimation.toString())