chore: Refactor transaction_ids -> transactions

This commit is contained in:
timedout
2026-02-23 17:44:35 +00:00
parent d311b87579
commit 558262dd1f
7 changed files with 15 additions and 16 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ pub(crate) async fn send_message_event_route(
// Check if this is a new transaction id
if let Ok(response) = services
.transaction_ids
.transactions
.get_client_txn(sender_user, sender_device, &body.txn_id)
.await
{
@@ -92,7 +92,7 @@ pub(crate) async fn send_message_event_route(
)
.await?;
services.transaction_ids.add_client_txnid(
services.transactions.add_client_txnid(
sender_user,
sender_device,
&body.txn_id,
+2 -2
View File
@@ -26,7 +26,7 @@ pub(crate) async fn send_event_to_device_route(
// Check if this is a new transaction id
if services
.transaction_ids
.transactions
.get_client_txn(sender_user, sender_device, &body.txn_id)
.await
.is_ok()
@@ -104,7 +104,7 @@ pub(crate) async fn send_event_to_device_route(
// Save transaction id with empty data
services
.transaction_ids
.transactions
.add_client_txnid(sender_user, sender_device, &body.txn_id, &[]);
Ok(send_event_to_device::v3::Response {})