diff --git a/lib/modules/asset/AssetService.ts b/lib/modules/asset/AssetService.ts index 1cbadf2c..fafd9d8a 100644 --- a/lib/modules/asset/AssetService.ts +++ b/lib/modules/asset/AssetService.ts @@ -460,6 +460,18 @@ export class AssetService { } } }); + + // clear the groups + await this.sdk.document.mUpdate( + newEngineId, + InternalCollection.ASSETS, + assetsList.map((assetId) => ({ + _id: assetId, + body: { + groups: [], + }, + })) + ); } catch (error) { await recovery.rollback(); throw new BadRequestError(