Browse Source

fix(core): Update relation custom fields when updating Asset

Fixes #952
Michael Bromley 4 years ago
parent
commit
510025a3fa
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/core/src/service/services/asset.service.ts

+ 1 - 0
packages/core/src/service/services/asset.service.ts

@@ -259,6 +259,7 @@ export class AssetService {
             input.focalPoint.y = to3dp(input.focalPoint.y);
         }
         patchEntity(asset, omit(input, ['tags']));
+        await this.customFieldRelationService.updateRelations(ctx, Asset, input, asset);
         if (input.tags) {
             asset.tags = await this.tagService.valuesToTags(ctx, input.tags);
         }