Skip to content

Commit

Permalink
external id fixed in all meterreads list
Browse files Browse the repository at this point in the history
  • Loading branch information
Aish1990 committed Aug 2, 2024
1 parent 7bebd3c commit b74d9e1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/drec-api/src/pods/device/device.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ export class DeviceService {
pagenumber: number,
): Promise<any> {
this.logger.verbose(`With in getOrganizationDevices`);
if (pagenumber === null || pagenumber === undefined) {
pagenumber = 1;
}
if (Object.keys(filterDto).length != 0) {
if (Object.keys(filterDto).length != 0 && (pagenumber != null || pagenumber != undefined)) {
const limit = 20;
const query = await this.getFilteredQuery(filterDto);
let where: any = query.where;
Expand Down

0 comments on commit b74d9e1

Please sign in to comment.