Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/login error #168

Merged
merged 16 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Change the way to check if the cost center is valid

## [1.45.0] - 2024-10-28

### Changed
Expand All @@ -16,7 +20,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [1.44.13] - 2024-10-15

### Fixed

- Force setProfile to use a valid cost center
- Increase timeout to 45 seconds

Expand Down
6 changes: 5 additions & 1 deletion node/resolvers/Routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ export const Routes = {
])

// in case the cost center is not found, we need to find a valid cost center for the user
if (!costCenterResponse.data.getCostCenterById.businessDocument) {
if (
Object.values(costCenterResponse.data.getCostCenterById).every(
(value) => value === null
)
) {
try {
const usersByEmail = await organizations.getOrganizationsByEmail(email)

Expand Down
Loading