Fix broken sync-metadata (#5154)

An error has been recently introduced in the sync of fieldMetadata. This
PR fixes it

Additionnally, we are enabling email for trialing and past_due
workspaces. There is an ongoing work to introduce a more robust
activationStatus on workspace.
This commit is contained in:
Charles Bochet
2024-04-24 17:45:17 +02:00
committed by GitHub
parent 5d2d6bae08
commit 07c8779411
4 changed files with 5 additions and 5 deletions

View File

@ -140,7 +140,7 @@ export class WorkspaceMetadataUpdaterService {
*/
const updatedFieldMetadataCollection = await this.updateEntities<
FieldMetadataEntity<'default'>
>(manager, FieldMetadataEntity, storage.objectMetadataUpdateCollection, [
>(manager, FieldMetadataEntity, storage.fieldMetadataUpdateCollection, [
'objectMetadataId',
'workspaceId',
]);
@ -241,7 +241,7 @@ export class WorkspaceMetadataUpdaterService {
manager: EntityManager,
entityClass: EntityTarget<Entity>,
updateCollection: Array<
DeepPartial<Omit<Entity, 'fields'>> & { id: string }
DeepPartial<Omit<Entity, 'fields' | 'options'>> & { id: string }
>,
keysToOmit: (keyof Entity)[] = [],
): Promise<{ current: Entity; altered: Entity }[]> {