Skip to content

Commit

Permalink
Add connection_id to machine user API creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Dec 3, 2024
1 parent 5d6edd6 commit 46306d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/routes/ldap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default async function router(schema: Schema, config: Config) {
name: Type.String(),
description: Type.String(),
agency_id: Type.Union([Type.Integer(), Type.Null()]),
connection_id: Type.Integer(),
channels: Type.Array(Type.Integer(), {
minItems: 1
})
Expand All @@ -74,7 +75,7 @@ export default async function router(schema: Schema, config: Config) {
integration: {
name: req.body.name,
description: req.body.description,
management_url: config.API_URL
management_url: config.API_URL + `/connection/${req.body.connection_id}`
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export default {
name: this.connection.name,
description: this.connection.description,
agency_id: this.connection.agency,
connection_id: this.connection.id,
channels: this.selected.map((s) => { return s.id })
}
})
Expand Down

0 comments on commit 46306d3

Please sign in to comment.