mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 07:57:07 +00:00
Guard against underpopulated groups
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user