mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
do not read confirmed and deleted contributions
This commit is contained in:
parent
22944bce28
commit
56ba42babd
@ -496,7 +496,8 @@ async function getUserCreations(ids: number[], includePending = true): Promise<C
|
|||||||
UNION
|
UNION
|
||||||
SELECT contribution_date AS date, amount AS amount, user_id AS userId FROM contributions
|
SELECT contribution_date AS date, amount AS amount, user_id AS userId FROM contributions
|
||||||
WHERE user_id IN (${ids.toString()})
|
WHERE user_id IN (${ids.toString()})
|
||||||
AND contribution_date >= ${dateFilter}`
|
AND contribution_date >= ${dateFilter}
|
||||||
|
AND confirmed_at IS NULL AND deleted_at IS NULL`
|
||||||
: ''
|
: ''
|
||||||
|
|
||||||
const unionQuery = await queryRunner.manager.query(`
|
const unionQuery = await queryRunner.manager.query(`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user