diff src/heartbeat.js.luan @ 46:42b741a1d5c6

add username
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 28 Feb 2025 19:25:12 -0700
parents 62d04ca486dd
children a63faf49e1d7
line wrap: on
line diff
--- a/src/heartbeat.js.luan	Fri Feb 28 14:37:11 2025 -0700
+++ b/src/heartbeat.js.luan	Fri Feb 28 19:25:12 2025 -0700
@@ -21,7 +21,7 @@
 	http_push_to_users( user_ids, js )
 
 	local last_update = Http.request.parameters.last_update or error()
-	last_update = to_number(last_update) or error()
+	last_update = to_number(last_update) or error(last_update)
 	local user_last_update = user.last_update()
 	local now = time_now()
 	if now - user_last_update < 10000 or last_update >= user_last_update then