Skip to content

Commit

Permalink
Merge branch 'master' into fix/login-error
Browse files Browse the repository at this point in the history
  • Loading branch information
giurigaud authored Oct 8, 2024
2 parents 7414868 + abdf960 commit f6872f7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Force setProfile to use a valid cost center
- Increase timeout to 45 seconds

## [1.44.10] - 2024-10-07

### Fixed

- Use return instead of throwing a duplicate email error.

## [1.44.9] - 2024-10-03

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "storefront-permissions",
"vendor": "vtex",
"version": "1.44.9",
"version": "1.44.10",
"title": "Storefront Permissions",
"description": "Manage User's permissions on apps that relates to this app",
"mustUpdateAt": "2022-08-28",
Expand Down
2 changes: 1 addition & 1 deletion node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vtex.checkout-ui-custom",
"version": "1.44.9",
"version": "1.44.10",
"dependencies": {
"@vtex/api": "6.47.0",
"atob": "^2.1.2",
Expand Down
7 changes: 4 additions & 3 deletions node/resolvers/Mutations/Users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ export const addUser = async (_: any, params: any, ctx: Context) => {
(org: any) => org.orgId === params.orgId && org.costId === params.costId
)
) {
throw new Error(
`User with email ${params.email} already exists in the organization and cost center`
)
return {
message: `Email already exists in the organization and cost center`,
status: 'duplicated-organization',
}
}

await createPermission({
Expand Down

0 comments on commit f6872f7

Please sign in to comment.