From c2732e8e2cf50ff0f52e466cd0b1b0cde6296711 Mon Sep 17 00:00:00 2001 From: ingalls Date: Thu, 13 Jun 2024 11:54:21 -0600 Subject: [PATCH] Setup Groups --- api/lib/data-mission.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/api/lib/data-mission.ts b/api/lib/data-mission.ts index f5a2541d2..fd2a1b63c 100644 --- a/api/lib/data-mission.ts +++ b/api/lib/data-mission.ts @@ -59,16 +59,15 @@ export default class DataMission { group: data.mission_groups, }); + await config.models.Data.commit(data.id, { + mission_token: mission.token + }); + // The groups property isn't returned by Create // Make this second call to get the groups - TODO Talk to Josh mission = await api.Mission.get(data.name, {}, { token: data.mission_token }); - - await config.models.Data.commit(data.id, { - mission_token: mission.token - }); - } const layers = await config.models.Layer.list({