Skip to content

Commit

Permalink
Merge pull request #370 from d-rec/device-my
Browse files Browse the repository at this point in the history
external id fixed in all meterreads list
  • Loading branch information
Aish1990 authored Aug 2, 2024
2 parents 7bebd3c + 0cde16d commit c0d706c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 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,10 @@ 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 c0d706c

Please sign in to comment.