mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change query to query builder withdrew table name.
This commit is contained in:
parent
76b372fb64
commit
7a27bf52bf
@ -50,8 +50,8 @@ async function getUserCreations(id: number): Promise<number[]> {
|
||||
// })
|
||||
const transactionCreations = await getCustomRepository(TransactionCreationRepository)
|
||||
.createQueryBuilder()
|
||||
.select(['SUM(login_pending_tasks_admin.amount)'])
|
||||
.where('login_pending_tasks_admin.userId = :id', { id })
|
||||
.select(['SUM(amount)'])
|
||||
.where('userId = :id', { id })
|
||||
.getMany()
|
||||
console.log('transactionCreations', transactionCreations)
|
||||
// SELECT * FROM pending_creations WHERE userId = id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user