浏览代码

fix(core): Emit `CollectionEvent` after moving a collection (#3801)

Martijn 4 月之前
父节点
当前提交
d80e28f6da
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/core/src/service/services/collection.service.ts

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

@@ -609,6 +609,7 @@ export class CollectionService implements OnModuleInit {
         await this.triggerApplyFiltersJob(ctx, {
             collectionIds: [target.id],
         });
+        await this.eventBus.publish(new CollectionEvent(ctx, target, 'updated'));
         return assertFound(this.findOne(ctx, input.collectionId));
     }