From 6fdd73c58ce34c3dffc6f29414d98c0770cc43fc Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Wed, 7 Dec 2022 08:36:21 -0300 Subject: [PATCH] removing treatment of undefined embed field --- src/modules/catalog/catalog.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/catalog/catalog.service.ts b/src/modules/catalog/catalog.service.ts index 51ac63c..2b0f21f 100644 --- a/src/modules/catalog/catalog.service.ts +++ b/src/modules/catalog/catalog.service.ts @@ -204,7 +204,7 @@ class CatalogService implements OnModuleInit { metadata: Metadata; }) { const { body, customer_id, data_asset_id, metadata } = data; - if (!body.embed) body.embed = undefined; + const { data_asset } = await lastValueFrom( this.catalogWriteService.UpdateDataAsset( { id: data_asset_id, changes: JSON.stringify(body) },