From 3040992c51cbccc10d1b9e956d2c874f10bdbcdc Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 21 Feb 2022 01:46:01 +0100 Subject: [PATCH] fix query to use proper field --- backend/src/graphql/resolver/AdminResolver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/graphql/resolver/AdminResolver.ts b/backend/src/graphql/resolver/AdminResolver.ts index 54898f770..6112e1d50 100644 --- a/backend/src/graphql/resolver/AdminResolver.ts +++ b/backend/src/graphql/resolver/AdminResolver.ts @@ -287,7 +287,7 @@ async function getUserCreations(id: number): Promise { .where('transactions.user_id = :id', { id }) .andWhere('transactions.transaction_type_id = :type', { type: TransactionTypeId.CREATION }) .andWhere({ - targetDate: Raw((alias) => `${alias} >= :date and ${alias} < :endDate`, { + creationDate: Raw((alias) => `${alias} >= :date and ${alias} < :endDate`, { date: dateBeforeLastMonth, endDate: dateNextMonth, }),