transaction for coinanimation

This commit is contained in:
Ulf Gebhardt 2021-11-10 20:34:14 +01:00
parent f797017c9a
commit 7205eb2fae
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -541,11 +541,11 @@ export class UserResolver {
try { try {
if (coinanimation) { if (coinanimation) {
// TODO transaction queryRunner.manager
userSettingRepository .getCustomRepository(UserSettingRepository)
.setOrUpdate(userEntity.id, Setting.COIN_ANIMATION, coinanimation.toString()) .setOrUpdate(userEntity.id, Setting.COIN_ANIMATION, coinanimation.toString())
.catch((error) => { .catch((error) => {
throw new Error(error) throw new Error('error saving coinanimation: ' + error)
}) })
} }