mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:47:08 +00:00
Return the archived project configuration value.
This value indicates whether the project should receive updates from external sources.
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
const { setSurvey, pool } = require('../connection');
|
||||
|
||||
async function get () {
|
||||
const res = await pool.query("SELECT pid, name, schema, COALESCE(meta->'groups', '[]'::jsonb) AS groups FROM public.projects;");
|
||||
const text = `
|
||||
SELECT
|
||||
pid,
|
||||
name,
|
||||
schema,
|
||||
COALESCE(meta->'groups', '[]'::jsonb) AS groups,
|
||||
COALESCE(meta->'archived', 'false'::jsonb) AS archived
|
||||
FROM public.projects;
|
||||
`;
|
||||
const res = await pool.query(text);
|
||||
return res.rows;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user