From 99a844e52e48bb6e8ed63fc737d6ee62b3f0baf6 Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Mon, 9 May 2022 13:25:10 +0200
Subject: check reserve balance after p2p merges

---
 src/exchangedb/exchange-0001-part.sql | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/exchangedb/exchange-0001-part.sql')

diff --git a/src/exchangedb/exchange-0001-part.sql b/src/exchangedb/exchange-0001-part.sql
index f5276d0b..c2b3855a 100644
--- a/src/exchangedb/exchange-0001-part.sql
+++ b/src/exchangedb/exchange-0001-part.sql
@@ -3136,8 +3136,8 @@ THEN
   -- The taler-exchange-router will take care of this.
   UPDATE purse_actions
      SET action_date=0 --- "immediately"
-        ,partner_serial_id=NEW.partner_serial_id
-   WHERE purse_pub=NEW.purse_pub;
+        ,partner_serial_id=my_partner_serial_id
+   WHERE purse_pub=in_purse_pub;
 ELSE
   -- This is a local reserve, update balance immediately.
   UPDATE reserves
-- 
cgit v1.2.3

