Do not throw on corrupted labelFieldMetadataIdentifier (#17859)

# Introduction
As we don't enforce any FK on object labelIdentifierFieldMetadataId we
have some that are either null or pointing to non-existing field
metadata resulting in exception thrown at cache computation lvl

Commenting the exception throw until we've closed
https://github.com/twentyhq/core-team-issues/issues/2172

closes https://github.com/twentyhq/core-team-issues/issues/2221
This commit is contained in:
Paul Rastoin
2026-02-11 13:33:38 +01:00
committed by GitHub
parent 2237273869
commit d9dab75052
2 changed files with 15 additions and 13 deletions
@@ -97,7 +97,7 @@ export class ObjectMetadataEntity
shortcut: string | null;
// TODO: This should not be nullable - legacy field introduced when label identifier was nullable
// TODO: This should be a joinColumn and we should have a FK on this too
// TODO: This should be a joinColumn and we should have a FK on this too https://github.com/twentyhq/core-team-issues/issues/2172
@Column({ nullable: true, type: 'uuid' })
labelIdentifierFieldMetadataId: string | null;