From 515c8b17e36f33b11b4eb2c3eba3eba52f31606e Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 24 Aug 2026 14:23:15 +0100 Subject: [PATCH] Update getPoolsNotInTeam.js --- backend/endpoints/pool/controller/getPoolsNotInTeam.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backend/endpoints/pool/controller/getPoolsNotInTeam.js b/backend/endpoints/pool/controller/getPoolsNotInTeam.js index 4ed19f1..0a0d81d 100644 --- a/backend/endpoints/pool/controller/getPoolsNotInTeam.js +++ b/backend/endpoints/pool/controller/getPoolsNotInTeam.js @@ -37,10 +37,6 @@ module.exports = (db) => { // Get the teamPool const teamPools = await db.collection('teampool').find({ teamId }).toArray(); - if (teamPools.length === 0) { - return res.status(404).json({ success: false, error: 'Team does not have any pools' }); - } - // Get all pool IDs const poolIds = teamPools.map((tp) => new ObjectId(tp.poolId));