From 5e3d831b4acc98c9fe0572425584539cc5c7ee0f Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Fri, 12 Apr 2024 15:32:48 +0200 Subject: [PATCH] fix(cli): Removed channelId from generated findAll method Only applies to channel-aware entities, which we currently do not support --- packages/cli/src/commands/add/service/add-service.ts | 1 - .../commands/add/service/templates/entity-service.template.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/cli/src/commands/add/service/add-service.ts b/packages/cli/src/commands/add/service/add-service.ts index 8e6bd71f12..c61244e41a 100644 --- a/packages/cli/src/commands/add/service/add-service.ts +++ b/packages/cli/src/commands/add/service/add-service.ts @@ -207,7 +207,6 @@ function customizeFindAllMethod(serviceClassDeclaration: ClassDeclaration, entit writer.write(`.build(${entityRef.name}, options,`).block(() => { writer.writeLine('relations,'); writer.writeLine('ctx,'); - writer.writeLine('channelId: ctx.channelId,'); }); writer.write(')'); writer.write('.getManyAndCount()'); diff --git a/packages/cli/src/commands/add/service/templates/entity-service.template.ts b/packages/cli/src/commands/add/service/templates/entity-service.template.ts index 4499554e8c..034227061b 100644 --- a/packages/cli/src/commands/add/service/templates/entity-service.template.ts +++ b/packages/cli/src/commands/add/service/templates/entity-service.template.ts @@ -73,7 +73,6 @@ export class EntityServiceTemplate { .build(TemplateEntity, options, { relations, ctx, - channelId: ctx.channelId, }) .getManyAndCount() .then(([_items, totalItems]) => {