Skip to content

Commit

Permalink
Add flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Aug 7, 2024
1 parent ba2f7d9 commit e5b1e96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/routes/connection-layer-cot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export default async function router(schema: Schema, config: Config) {

for (let i = 0; i < req.body.features.length; i++) {
req.body.features[i] = await style.feat(req.body.features[i])

if (!req.body.features[i].properties.flow) {
req.body.features[i].properties.flow = {};
}

req.body.features[i].properties.flow[`CloudTAK-Layer-${req.params.layerid}`] = new Date().toISOString();
}

let pooledClient;
Expand Down

0 comments on commit e5b1e96

Please sign in to comment.