Skip to content

Commit

Permalink
#609 Fix stream issue on action creation
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 26, 2018
1 parent 19e94c3 commit e0e938c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thehive-backend/app/services/UserSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class UserSrv @Inject() (

def extraAuthContext[A](block: AuthContext Future[A])(implicit authContext: AuthContext): Future[A] = {
val ac = AuthContextImpl(authContext.userId, authContext.userName, Instance.getInternalId, authContext.roles)
eventSrv.publish(InternalRequestProcessStart(authContext.requestId))
eventSrv.publish(InternalRequestProcessStart(ac.requestId))
block(ac).andThen {
case _ eventSrv.publish(InternalRequestProcessEnd(authContext.requestId))
case _ eventSrv.publish(InternalRequestProcessEnd(ac.requestId))
}
}

Expand Down

0 comments on commit e0e938c

Please sign in to comment.