From e5b1e96d67010c64825972e4715aec27ae6c1fdc Mon Sep 17 00:00:00 2001 From: ingalls Date: Wed, 7 Aug 2024 11:16:53 -0700 Subject: [PATCH] Add flow --- api/routes/connection-layer-cot.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/routes/connection-layer-cot.ts b/api/routes/connection-layer-cot.ts index 97bdb90e5..deac24d6d 100644 --- a/api/routes/connection-layer-cot.ts +++ b/api/routes/connection-layer-cot.ts @@ -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;