mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Update backend/src/graphql/resolver/UserResolver.ts
Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
parent
70fa4f49d0
commit
d73728bf86
@ -584,21 +584,3 @@ export class UserResolver {
|
|||||||
return result.data.hasElopage
|
return result.data.hasElopage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
const rollbackAutoIncrement = async (
|
|
||||||
queryRunner: QueryRunner,
|
|
||||||
entity: typeof BaseEntity,
|
|
||||||
entityName: string,
|
|
||||||
) => {
|
|
||||||
const count = await queryRunner.manager.count(entity)
|
|
||||||
const queryString = 'ALTER TABLE `' + entityName + '` auto_increment = ' + count
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('Database AlterTable Query: ', queryString)
|
|
||||||
await queryRunner.query(queryString).catch((error) => {
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('problems with reset auto increment: %o', error)
|
|
||||||
throw new Error('Problems with reset auto increment: ' + error)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user