mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 19:11:13 +00:00
refactor(core): Rename EventRelay to EventService (no-changelog) (#10110)
This commit is contained in:
@@ -14,7 +14,7 @@ import { Push } from '@/push';
|
||||
import { CommunityPackagesService } from '@/services/communityPackages.service';
|
||||
import { BadRequestError } from '@/errors/response-errors/bad-request.error';
|
||||
import { InternalServerError } from '@/errors/response-errors/internal-server.error';
|
||||
import { EventRelay } from '@/eventbus/event-relay.service';
|
||||
import { EventService } from '@/eventbus/event.service';
|
||||
|
||||
const {
|
||||
PACKAGE_NOT_INSTALLED,
|
||||
@@ -39,7 +39,7 @@ export class CommunityPackagesController {
|
||||
private readonly push: Push,
|
||||
private readonly internalHooks: InternalHooks,
|
||||
private readonly communityPackagesService: CommunityPackagesService,
|
||||
private readonly eventRelay: EventRelay,
|
||||
private readonly eventService: EventService,
|
||||
) {}
|
||||
|
||||
// TODO: move this into a new decorator `@IfConfig('executions.mode', 'queue')`
|
||||
@@ -116,7 +116,7 @@ export class CommunityPackagesController {
|
||||
package_version: parsed.version,
|
||||
failure_reason: errorMessage,
|
||||
});
|
||||
this.eventRelay.emit('community-package-installed', {
|
||||
this.eventService.emit('community-package-installed', {
|
||||
user: req.user,
|
||||
inputString: name,
|
||||
packageName: parsed.packageName,
|
||||
@@ -154,7 +154,7 @@ export class CommunityPackagesController {
|
||||
package_author: installedPackage.authorName,
|
||||
package_author_email: installedPackage.authorEmail,
|
||||
});
|
||||
this.eventRelay.emit('community-package-installed', {
|
||||
this.eventService.emit('community-package-installed', {
|
||||
user: req.user,
|
||||
inputString: name,
|
||||
packageName: parsed.packageName,
|
||||
@@ -253,7 +253,7 @@ export class CommunityPackagesController {
|
||||
package_author: installedPackage.authorName,
|
||||
package_author_email: installedPackage.authorEmail,
|
||||
});
|
||||
this.eventRelay.emit('community-package-deleted', {
|
||||
this.eventService.emit('community-package-deleted', {
|
||||
user: req.user,
|
||||
packageName: name,
|
||||
packageVersion: installedPackage.installedVersion,
|
||||
@@ -309,7 +309,7 @@ export class CommunityPackagesController {
|
||||
package_author: newInstalledPackage.authorName,
|
||||
package_author_email: newInstalledPackage.authorEmail,
|
||||
});
|
||||
this.eventRelay.emit('community-package-updated', {
|
||||
this.eventService.emit('community-package-updated', {
|
||||
user: req.user,
|
||||
packageName: name,
|
||||
packageVersionCurrent: previouslyInstalledPackage.installedVersion,
|
||||
|
||||
Reference in New Issue
Block a user