Update backend/src/graphql/resolver/UserResolver.ts

Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
Ulf Gebhardt 2021-11-06 18:55:16 +01:00 committed by GitHub
parent d73728bf86
commit 348075ab38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -404,11 +404,6 @@ export class UserResolver {
await queryRunner.commitTransaction()
} catch (e) {
await queryRunner.rollbackTransaction()
// TODO: Lets not do this?! What if state_users were never updated?
// We would still roll back the autoincrement which would produce duplicate entries?!
// await rollbackAutoIncrement(queryRunner, LoginUser, `login_users`)
// await rollbackAutoIncrement(queryRunner, LoginUserBackup, `login_user_backups`)
// await rollbackAutoIncrement(queryRunner, DbUser, `state_users`)
throw e
} finally {
await queryRunner.release()