mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:57:08 +00:00
GIS raw: avoid returning nulls
This commit is contained in:
@@ -73,7 +73,7 @@ async function points (projectId, options = {}) {
|
|||||||
return res.rows.map(r => [
|
return res.rows.map(r => [
|
||||||
JSON.parse(r.geojson),
|
JSON.parse(r.geojson),
|
||||||
JSON.parse(r.delta)
|
JSON.parse(r.delta)
|
||||||
]).flat();
|
]).flat().filter(i => i != null);
|
||||||
} else {
|
} else {
|
||||||
throw {status: 404};
|
throw {status: 404};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user