From 98f38d56bd5039a5b9cc0ef52e1fb4cf3df77fa6 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Fri, 21 Feb 2025 00:22:08 +1100 Subject: [PATCH] Update default timer script to remove request parameter - Modify default timer script to remove unused `req` parameter - Simplify default script signature to match current usage --- routes/timer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/timer.py b/routes/timer.py index afd6f7d..b0a5b14 100644 --- a/routes/timer.py +++ b/routes/timer.py @@ -136,7 +136,7 @@ FOR EACH ROW EXECUTE PROCEDURE fn_increment_invocation_count(); ''' -DEFAULT_SCRIPT = """async (req) => { +DEFAULT_SCRIPT = """async () => { environment.count += 1 console.log(`Executing ${environment.count}`) }"""