We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82dbc02 commit db8932cCopy full SHA for db8932c
crates/database/db/src/operations.rs
@@ -855,11 +855,13 @@ impl<T: ReadConnectionProvider + Sync + ?Sized> DatabaseReadOperations for T {
855
.await?
856
{
857
// Yield n messages starting from the found queue index + 1.
858
+ // Only return messages that haven't been skipped (skipped = false).
859
Ok(models::l1_message::Entity::find()
860
.filter(
861
// We add 1 to the queue index to constrain across block boundaries
862
models::l1_message::Column::QueueIndex.gte(record.queue_index + 1),
863
)
864
+ .filter(models::l1_message::Column::Skipped.eq(false))
865
.order_by_asc(models::l1_message::Column::QueueIndex)
866
.limit(Some(n as u64))
867
.all(self.get_connection())
0 commit comments