Skip to content

Commit

Permalink
refactor: exclude ENROUTE packets from offline queue
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Sep 16, 2023
1 parent d7d856a commit a250555
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface PacketDao {

@Transaction
fun getQueuedPackets(): List<DataPacket>? =
getDataPackets().filter { it.status in setOf(MessageStatus.ENROUTE, MessageStatus.QUEUED) }
getDataPackets().filter { it.status == MessageStatus.QUEUED }

@Query("Select * from packet where port_num = 8 order by received_time asc")
fun getAllWaypoints(): List<Packet>
Expand Down

0 comments on commit a250555

Please sign in to comment.