Skip to content

Commit

Permalink
fix(cli): Removed channelId from generated findAll method
Browse files Browse the repository at this point in the history
Only applies to channel-aware entities, which we currently do not support
  • Loading branch information
michaelbromley committed Apr 12, 2024
1 parent 19820de commit 5e3d831
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/cli/src/commands/add/service/add-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export class EntityServiceTemplate {
.build(TemplateEntity, options, {
relations,
ctx,
channelId: ctx.channelId,
})
.getManyAndCount()
.then(([_items, totalItems]) => {
Expand Down

0 comments on commit 5e3d831

Please sign in to comment.