Fix workspace sync issue (#6121)
Fixing an issue with typeORM not fetching existing metadata collection while syncing fields and relations
This commit is contained in:
@ -45,7 +45,6 @@ export class WorkspaceSyncFieldMetadataService {
|
|||||||
where: {
|
where: {
|
||||||
workspaceId: context.workspaceId,
|
workspaceId: context.workspaceId,
|
||||||
// We're only interested in standard fields
|
// We're only interested in standard fields
|
||||||
fields: { isCustom: false },
|
|
||||||
},
|
},
|
||||||
relations: ['dataSource', 'fields'],
|
relations: ['dataSource', 'fields'],
|
||||||
});
|
});
|
||||||
|
|||||||
@ -46,7 +46,6 @@ export class WorkspaceSyncRelationMetadataService {
|
|||||||
await objectMetadataRepository.find({
|
await objectMetadataRepository.find({
|
||||||
where: {
|
where: {
|
||||||
workspaceId: context.workspaceId,
|
workspaceId: context.workspaceId,
|
||||||
fields: { isCustom: false },
|
|
||||||
},
|
},
|
||||||
relations: ['dataSource', 'fields'],
|
relations: ['dataSource', 'fields'],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user