mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:37:07 +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');
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user