Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanslatten committed Sep 29, 2024
1 parent c22d677 commit c209fbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
24 changes: 1 addition & 23 deletions plugins/arcgis/service/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/arcgis/service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function handleAuthentication(req: express.Request, httpClient: HttpClient
expiration: 900
}

const url = `${portalUrl}/oauth2/token?client_id=${params.client_id}&client_secret=${oauthCreds.clientSecret}&grant_type=${params.grant_type}&expiration=${params.expiration}`
const url = `${portalUrl}/oauth2/token?client_id=${params.client_id}&client_secret=${params.client_secret}&grant_type=${params.grant_type}&expiration=${params.expiration}`
const response = await httpClient.sendGet(url);
identityManager = await ArcGISIdentityManager.fromToken({
clientId: featureClientId,
Expand Down
2 changes: 1 addition & 1 deletion service/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ async function initWebLayer(
middleware applies the entity form of a user on the request rather than
the mongoose document instance
*/
return { ...req.user?.toJSON(), id: req.user?._id.toHexString() } as UserExpanded
return { ...req.user.toJSON(), id: req.user._id.toHexString() } as UserExpanded
},
locale() {
return Object.freeze({
Expand Down

0 comments on commit c209fbe

Please sign in to comment.