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, }),