Skip to content

Commit

Permalink
chore: Release v1.3.7 - See CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-KumarH committed Oct 14, 2023
1 parent e0943c1 commit bb1092c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.7 (October 14th, 2023)

- added null condition for comparison of nested attributes

## 1.3.6 (October 14th, 2023)

- added data field for register user
Expand Down
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@restorecommerce/identity-srv",
"version": "1.3.6",
"version": "1.3.7",
"description": "Restorecommerce identity service",
"main": "lib/start.js",
"author": "n-fuse GmbH",
Expand Down
5 changes: 4 additions & 1 deletion src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1896,9 +1896,12 @@ export class UserService extends ServiceBase<UserListResponse, UserList> impleme
}

private nestedAttributesEqual(dbAttributes, userAttributes) {
if(!userAttributes) {
return true;
}
if (dbAttributes?.length > 0 && userAttributes?.length > 0) {
return userAttributes.every((obj) => dbAttributes.some((dbObj => dbObj.value === obj.value)));
} else if (dbAttributes.length != userAttributes.length) {
} else if (dbAttributes?.length != userAttributes?.length) {
return false;
}
}
Expand Down

0 comments on commit bb1092c

Please sign in to comment.