Skip to content

Commit

Permalink
edited where clause since there was an error. (#269)
Browse files Browse the repository at this point in the history
Co-authored-by: August Andersen <[email protected]>
  • Loading branch information
augusthjerrild and August Andersen authored Oct 1, 2024
1 parent 6dc857d commit a527810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/device-management/iot-device-downlink.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class IoTDeviceDownlinkService {
try {
const downlinks = await this.downlinkRepository.find({
where: {
lorawanDevice: deviceId,
lorawanDeviceId: deviceId,
flushed: false || IsNull(),
sendAt: IsNull(),
acknowledgedAt: IsNull(),
Expand All @@ -181,7 +181,7 @@ export class IoTDeviceDownlinkService {
try {
const downlinks = await this.downlinkRepository.find({
where: {
lorawanDevice: deviceId,
lorawanDeviceId: deviceId,
sendAt: Not(IsNull()),
},
order: {
Expand Down

0 comments on commit a527810

Please sign in to comment.