Merge pull request #2021 from hongwei1/develop

bugfix/added the user for refreshUser endpoint
This commit is contained in:
Simon Redfern 2022-03-03 11:46:26 +01:00 committed by GitHub
commit fe0efc249d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1971,8 +1971,8 @@ trait APIMethods310 {
(Full(u), callContext) <- authenticatedAccess(cc)
_ <- NewStyle.function.hasEntitlement("", userId, canRefreshUser, callContext)
startTime <- Future{Helpers.now}
_ <- NewStyle.function.findByUserId(userId, callContext)
_ = AuthUser.refreshUser(_, callContext)
(user, callContext) <- NewStyle.function.findByUserId(userId, callContext)
_ = AuthUser.refreshUser(user, callContext)
endTime <- Future{Helpers.now}
durationTime = endTime.getTime - startTime.getTime
} yield {