Guard against underpopulated groups

This commit is contained in:
D. Berge
2025-08-22 16:16:10 +02:00
parent 8afac5c150
commit 63633715e2

View File

@@ -332,7 +332,7 @@ async function getGroup (groupName, opts = {}) {
const group = (await groups())?.[groupName]?.map( i => i.pid)?.sort(); const group = (await groups())?.[groupName]?.map( i => i.pid)?.sort();
if (!group?.length) return; if (!group?.length || group?.length < 2) return;
const client = await pool.connect(); const client = await pool.connect();