Skip to content

Commit

Permalink
Setup Groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Jun 13, 2024
1 parent 6792351 commit c2732e8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions api/lib/data-mission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit c2732e8

Please sign in to comment.