Skip to content

Commit

Permalink
fix: add await to requests to properly handle login with inactive orgs (
Browse files Browse the repository at this point in the history
  • Loading branch information
enzomerca authored Sep 5, 2024
1 parent 036d954 commit a66e488
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- Add await to requests to properly handle inactive organizations on login

## [1.44.5] - 2024-09-04

### Fixed
Expand Down
3 changes: 1 addition & 2 deletions node/resolvers/Routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,7 @@ export const Routes = {
if (organizationList) {
organization = (await getOrganization(organizationList.id))?.data
?.getOrganizationById

setActiveUserByOrganization(
await setActiveUserByOrganization(
null,
{
costId: organizationList.costId,
Expand Down
2 changes: 1 addition & 1 deletion node/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@ sprintf-js@~1.0.2:
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=

"stats-lite@github:vtex/node-stats-lite#dist":
stats-lite@vtex/node-stats-lite#dist:
version "2.2.0"
resolved "https://codeload.github.com/vtex/node-stats-lite/tar.gz/1b0d39cc41ef7aaecfd541191f877887a2044797"
dependencies:
Expand Down

0 comments on commit a66e488

Please sign in to comment.