Skip to content

Commit 07177c7

Browse files
committed
feat: fix connections
1 parent 9aea717 commit 07177c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libraries/nestjs-libraries/src/database/prisma/integrations/integration.repository.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ export class IntegrationRepository {
7979
},
8080
});
8181

82-
return findIt.some((f) => f.organizationId === org) || findIt.length === 0;
82+
if (findIt.some((f) => f.organizationId === org)) {
83+
return false;
84+
}
85+
86+
return findIt.length > 0;
8387
}
8488

8589
updateProviderSettings(org: string, id: string, settings: string) {

0 commit comments

Comments
 (0)