mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 07:37:08 +00:00
Add option to return project timestamp
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
const { setSurvey, pool } = require('../connection');
|
||||
|
||||
async function get () {
|
||||
async function get (opts = {}) {
|
||||
|
||||
const select = opts.timestamps
|
||||
? "last_project_update(pid) tstamp,"
|
||||
: "";
|
||||
|
||||
const text = `
|
||||
SELECT
|
||||
${select}
|
||||
pid,
|
||||
name,
|
||||
schema,
|
||||
|
||||
Reference in New Issue
Block a user