mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:27:07 +00:00
Ignore empty path parts in info.get()
This commit is contained in:
@@ -2,7 +2,7 @@ const { setSurvey } = require('../connection');
|
||||
|
||||
async function get (projectId, path, opts = {}) {
|
||||
const client = await setSurvey(projectId);
|
||||
const [key, ...subkey] = path.split("/");
|
||||
const [key, ...subkey] = path.split("/").filter(i => i.trim().length);
|
||||
|
||||
const text = `
|
||||
SELECT value
|
||||
|
||||
Reference in New Issue
Block a user