Skip to content

Commit

Permalink
added object id to agentlogin message
Browse files Browse the repository at this point in the history
  • Loading branch information
sagostin committed Sep 20, 2024
1 parent 5afa5ee commit 31f1368
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ func (r *AgentLogin) AgentLogin(db *mongo.Database) (string, error) {
return "", ee.ToError()
}

ee.ObjectID = aId

u := agent.Agent{ID: aId}
err = u.Get(db)
if err != nil {
Expand Down

0 comments on commit 31f1368

Please sign in to comment.