Bladeren bron

fix(cli): Removed channelId from generated findAll method

Only applies to channel-aware entities, which we currently do not support
Michael Bromley 1 jaar geleden
bovenliggende
commit
5e3d831b4a

+ 0 - 1
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()');

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