We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ca2302 commit ae719a8Copy full SHA for ae719a8
1 file changed
services/libs/data-access-layer/src/organizations/base.ts
@@ -450,7 +450,8 @@ export async function findOrCreateOrganization(
450
integrationId?: string,
451
throttleUpdatedAt = false,
452
): Promise<string | undefined> {
453
- let verifiedIdentities = data.identities ? data.identities.filter((i) => i.verified) : []
+ data.identities = data.identities ?? []
454
+ let verifiedIdentities = data.identities.filter((i) => i.verified)
455
456
if (verifiedIdentities.length === 0 && !data.displayName) {
457
const message = `Missing organization identity or displayName while creating/updating organization!`
0 commit comments