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:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user