Ver código fonte

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

Martijn 4 meses atrás
pai
commit
d80e28f6da

+ 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));
     }