From 76c265b4f58c27e468b0541817f759c2caa188a7 Mon Sep 17 00:00:00 2001 From: acegoal07 <39467245+acegoal07@users.noreply.github.com> Date: Mon, 24 Aug 2026 14:19:59 +0100 Subject: [PATCH] Update getPoolsNotInTeam.js --- backend/endpoints/pool/controller/getPoolsNotInTeam.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/backend/endpoints/pool/controller/getPoolsNotInTeam.js b/backend/endpoints/pool/controller/getPoolsNotInTeam.js index 99c8e43..4ed19f1 100644 --- a/backend/endpoints/pool/controller/getPoolsNotInTeam.js +++ b/backend/endpoints/pool/controller/getPoolsNotInTeam.js @@ -34,15 +34,6 @@ module.exports = (db) => { return res.status(400).json({ success: false, error: 'Invalid team ID provided' }); } - // Get pool - const pool = await db.collection('team').findOne({ - _id: new ObjectId(teamId) - }); - - if (!pool) { - return res.status(404).json({ success: false, error: "Team doesn't exist" }); - } - // Get the teamPool const teamPools = await db.collection('teampool').find({ teamId }).toArray();