commit 6b6ec305e11dcbd98a5594ffba9a3ec96b9fcf24 parent 34ab4264214e083f403a98711d08adcf80517a39 Author: Florian Dold <florian@dold.me> Date: Tue, 21 Jan 2025 13:01:10 +0100 remove optimization, breaks insertion of successor measures Check is brittle in presence of timestamp rounding Diffstat:
| M | src/exchangedb/exchange_do_insert_kyc_measure_result.sql | | | 5 | +---- |
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/exchangedb/exchange_do_insert_kyc_measure_result.sql b/src/exchangedb/exchange_do_insert_kyc_measure_result.sql @@ -38,10 +38,7 @@ BEGIN -- Disactivate all previous outcomes. UPDATE legitimization_outcomes SET is_active=FALSE - WHERE h_payto=in_h_payto - -- this clause is a minor optimization to avoid - -- updating outcomes that have long expired. - AND expiration_time >= in_decision_time; + WHERE h_payto=in_h_payto; -- Insert new rules INSERT INTO legitimization_outcomes