mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
transaction for coinanimation
This commit is contained in:
parent
f797017c9a
commit
7205eb2fae
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user