Skip to content

Commit 4ad55c8

Browse files
CCM-13135: fixing more lint issues
1 parent b46548f commit 4ad55c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/client-management/src/infra/client-repository/repository.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
) {

0 commit comments

Comments
 (0)