From 5fec9311400e8732a8dd839c4125f2890803d7b1 Mon Sep 17 00:00:00 2001 From: Carlos Date: Tue, 19 Sep 2023 14:56:05 -0500 Subject: [PATCH] improve condition for projectCount --- src/repositories/userRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repositories/userRepository.ts b/src/repositories/userRepository.ts index e262d59d3..57ac0cdbf 100644 --- a/src/repositories/userRepository.ts +++ b/src/repositories/userRepository.ts @@ -52,7 +52,7 @@ export const findUserByWalletAddress = async ( user.projectsCount = await fetchUserProjectsCount( user!.id, - user?.id === ownerUserId, + Number(user?.id) === Number(ownerUserId), ); return user;