We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a3438b commit ced2844Copy full SHA for ced2844
backend/src/services/organizationService.ts
@@ -353,9 +353,10 @@ export default class OrganizationService extends LoggerBase {
353
const shouldDoEnrich = await this.shouldEnrich(enrichP)
354
355
const primaryIdentity = data.identities[0]
356
+ const nameToCheckInCache = (data as any).name || primaryIdentity.name
357
358
// check cache existing by name
- let cache = await organizationCacheRepository.findByName(primaryIdentity.name, {
359
+ let cache = await organizationCacheRepository.findByName(nameToCheckInCache, {
360
...this.options,
361
transaction,
362
})
0 commit comments