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]) => {