Skip to content

Commit

Permalink
fix: avoid full query sql in share page (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-w committed May 22, 2024
1 parent 18c67bb commit b987080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nestjs-backend/src/features/record/record.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1012,8 +1012,8 @@ export class RecordService {
filter,
});

queryBuilder.whereIn(`${dbTableName}.__id`, recordIds);
queryBuilder.select(this.knex.ref(`${dbTableName}.__id`));

const result = await this.prismaService
.txClient()
.$queryRawUnsafe<{ __id: string }[]>(queryBuilder.toQuery());
Expand Down

0 comments on commit b987080

Please sign in to comment.