login

<     >

2023-07-22 14:47:46 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

fix syntax error in Model:add_comment()

diff --git a/data.lua b/data.lua
index 86ce973..0bba356 100644
--- a/data.lua
+++ b/data.lua
@@ -155,7 +155,7 @@ function Model:shift_ticket(user_id, ticket, state_id)
 end
 
 function Model:add_comment(user_id, ticket_id, text)
-    self.db:execute[[
+    self.db:execute([[
         INSERT INTO Comment(ticket_id, user_id, time, text)
         VALUES (?, ?, unixepoch(), ?);
     ]], ticket_id, user_id, text)