Skip to content

Commit 99761bd

Browse files
authored
Refetch Bill chains (#620)
* Fix block notification sender, rework bill proc * Add recovery hook and tests * Add sync endpoint for frontend * Stabilize block populate tests
1 parent 9d31aa8 commit 99761bd

File tree

13 files changed

+536
-202
lines changed

13 files changed

+536
-202
lines changed

crates/bcr-ebill-api/src/service/bill_service/mod.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3729,8 +3729,10 @@ pub mod tests {
37293729
.expect_send_bill_is_sold_event()
37303730
.returning(|_, _| Ok(()));
37313731

3732-
// Populates identity block
3733-
expect_populates_identity_block(&mut ctx);
3732+
// Populates identity block and company block
3733+
ctx.notification_service
3734+
.expect_send_identity_chain_events()
3735+
.returning(|_| Ok(()));
37343736

37353737
let service = get_service(ctx);
37363738

@@ -3785,7 +3787,9 @@ pub mod tests {
37853787
.returning(|_, _| Ok(()));
37863788

37873789
// Populates identity block and company block
3788-
expect_populates_identity_block(&mut ctx);
3790+
ctx.notification_service
3791+
.expect_send_identity_chain_events()
3792+
.returning(|_| Ok(()));
37893793

37903794
let service = get_service(ctx);
37913795

crates/bcr-ebill-api/src/service/notification_service/service.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,7 @@ pub trait NotificationServiceApi: ServiceTraitBounds {
199199

200200
/// Fetch email notifications preferences link for the currently selected identity
201201
async fn get_email_notifications_preferences_link(&self, node_id: &NodeId) -> Result<url::Url>;
202+
203+
/// Resync bill chain
204+
async fn resync_bill_chain(&self, bill_id: &BillId) -> Result<()>;
202205
}

0 commit comments

Comments
 (0)