From db609d1d7833bca80877373d2294e0d1f7eae5d9 Mon Sep 17 00:00:00 2001 From: Hannes Heine Date: Wed, 24 Nov 2021 13:36:42 +0100 Subject: [PATCH] Change query to query bui. --- 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 9e296d92f..1cc034366 100644 --- a/backend/src/graphql/resolver/AdminResolver.ts +++ b/backend/src/graphql/resolver/AdminResolver.ts @@ -51,7 +51,7 @@ async function getUserCreations(id: number): Promise { const transactionCreations = await getCustomRepository(TransactionCreationRepository) .createQueryBuilder() .select(['SUM(amount)']) - .where('userId = :id', { id }) + .where('login_pending_tasks_admin.userId = :id', { id }) .getMany() console.log('transactionCreations', transactionCreations) // SELECT * FROM pending_creations WHERE userId = id