diff --git a/api/logics.py b/api/logics.py index 1c4cadfaf..5bbccb72c 100644 --- a/api/logics.py +++ b/api/logics.py @@ -185,6 +185,9 @@ def take(cls, order, user, amount=None): seconds=order.t_to_expire(Order.Status.TAK) ) order.save(update_fields=["amount", "taker", "expires_at"]) + + nostr_send_order_event.delay(order_id=order.id) + order.log( f"Taken by Robot({user.robot.id},{user.username}) for {order.amount} fiat units" ) @@ -293,6 +296,8 @@ def order_expires(cls, order): cls.cancel_bond(order.taker_bond) cls.kick_taker(order) + nostr_send_order_event.delay(order_id=order.id) + order.log("Order expired while waiting for taker bond") order.log("Taker bond was cancelled")