mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:17:08 +00:00
Return the group project configuration value.
This value (expected to be an array of strings) can be used to link related projects. Closes #186.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const { setSurvey, pool } = require('../connection');
|
const { setSurvey, pool } = require('../connection');
|
||||||
|
|
||||||
async function get () {
|
async function get () {
|
||||||
const res = await pool.query("SELECT pid, name, schema FROM public.projects;");
|
const res = await pool.query("SELECT pid, name, schema, COALESCE(meta->'groups', '[]'::jsonb) AS groups FROM public.projects;");
|
||||||
return res.rows;
|
return res.rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user