Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions backend/endpoints/pool/controller/getPoolsNotInTeam.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
Loading