Skip to content

Commit

Permalink
Fixed Expire value for Locked Task event
Browse files Browse the repository at this point in the history
  • Loading branch information
mdecimus committed Jan 15, 2025
1 parent 4838e5f commit b325acf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/jmap/src/services/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use store::{
roaring::RoaringBitmap,
write::{
key::{DeserializeBigEndian, KeySerializer},
BatchBuilder, Bincode, BlobOp, MaybeDynamicId, TaskQueueClass, ValueClass,
now, BatchBuilder, Bincode, BlobOp, MaybeDynamicId, TaskQueueClass, ValueClass,
},
IterateParams, Serialize, ValueKey, U32_LEN, U64_LEN,
};
Expand Down Expand Up @@ -284,7 +284,7 @@ impl Indexer for Server {
TaskQueue(TaskQueueEvent::Locked),
AccountId = event.account_id,
DocumentId = event.document_id,
Expires = trc::Value::Timestamp(event.lock_expiry()),
Expires = trc::Value::Timestamp(now() + event.lock_expiry()),
);
}
result
Expand Down

0 comments on commit b325acf

Please sign in to comment.