From 09e0d9b7a770484fdf425c1fc6c05c095f2722b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 17 Jul 2021 20:51:49 +0800 Subject: The order matters Somehow I got a blank page when querying after cleanup? No time to find out the answer why. This works. --- config/pikul_order.tag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/pikul_order.tag b/config/pikul_order.tag index 29541a9..4996658 100644 --- a/config/pikul_order.tag +++ b/config/pikul_order.tag @@ -55,9 +55,9 @@ sub { $insurance, $subtotal ); - Pikul::cleanup(); $Tag->query({sql => "UPDATE transactions SET tracking_number='$tracking_number' WHERE \ code='$order_number'"}); + Pikul::cleanup(); return $tracking_number; } EOR -- cgit v1.2.3