Fix sync metadata script (#5253)
While troubleshooting self-hosting migration, we run into issues with sync-metadata script introduced by recent changes
This commit is contained in:
@ -23,6 +23,9 @@ const commonFieldPropertiesToIgnore = [
|
||||
'objectMetadataId',
|
||||
'isActive',
|
||||
'options',
|
||||
'settings',
|
||||
'joinColumn',
|
||||
'gate',
|
||||
];
|
||||
|
||||
const fieldPropertiesToStringify = ['defaultValue'] as const;
|
||||
@ -73,7 +76,7 @@ export class WorkspaceFieldComparator {
|
||||
standardObjectMetadata.fields,
|
||||
{
|
||||
shouldIgnoreProperty: (property, originalMetadata) => {
|
||||
if (['options', 'gate'].includes(property)) {
|
||||
if (commonFieldPropertiesToIgnore.includes(property)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user