File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
utils/client-management/src/infra/client-repository Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ export class ClientRepository implements IClientRepository {
7676 'name' ,
7777 'meshMailboxId' ,
7878 ] ;
79- const nullableUniqueConstrainedAttributes : ( keyof Client ) [ ] = [
79+ const nullableUniqueConstrainedAttributes = new Set < keyof Client > ( [
8080 'meshMailboxId' ,
81- ] ;
81+ ] ) ;
8282
8383 const clients = await this . listClients ( ) ;
8484
@@ -89,8 +89,8 @@ export class ClientRepository implements IClientRepository {
8989 for ( const attribute of uniqueConstrainedAttributes ) {
9090 if (
9191 ! (
92- nullableUniqueConstrainedAttributes . includes ( attribute ) &&
93- ( client [ attribute ] === null || client [ attribute ] === undefined )
92+ nullableUniqueConstrainedAttributes . has ( attribute ) &&
93+ ( client [ attribute ] === undefined || client [ attribute ] == null )
9494 ) &&
9595 client [ attribute ] === newClient [ attribute ]
9696 ) {
You can’t perform that action at this time.
0 commit comments