add workspaceId to indirect entities (#19522)

Required for `workspace:export` command

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
neo773
2026-04-10 01:00:28 +05:30
committed by GitHub
parent 7ef80dd238
commit 8a10071253
38 changed files with 439 additions and 15 deletions
@@ -11,6 +11,8 @@ export type UniversalFlatIndexFieldMetadata = Omit<
| 'fieldMetadataId'
| 'fieldMetadata'
| 'id'
| 'workspaceId'
| 'workspace'
| keyof CastRecordTypeOrmDatePropertiesToString<IndexFieldMetadataEntity>
> & {
indexMetadataUniversalIdentifier: string;
@@ -61,6 +61,7 @@ export const fromUniversalFlatIndexToFlatIndex = ({
order: universalFlatIndexFieldMetadata.order,
createdAt: now,
updatedAt: now,
workspaceId,
};
},
);