diff --git a/data/modules/match.lua b/data/modules/match.lua index 9e0ea7851882f6c031873a1cf4ba26c2a717eac6..7c0d0195365e0718cd778d272ab8e3bf1857a1c7 100644 --- a/data/modules/match.lua +++ b/data/modules/match.lua @@ -197,7 +197,7 @@ local function match_loop(context, dispatcher, tick, state, messages) print("match " .. context.match_id .. " tick " .. tick) print("match " .. context.match_id .. " messages:\n" .. du.print_r(messages)) end - if tick < 180 then + if tick < 10 then return state end end diff --git a/server/core_notification.go b/server/core_notification.go index a72853763a374bec7a7e5a4035264bbee9fe4dba..ebe7ea664ce038ece8034ee402c3c94f5e4a5698 100644 --- a/server/core_notification.go +++ b/server/core_notification.go @@ -163,7 +163,9 @@ func NotificationDelete(logger *zap.Logger, db *sql.DB, userID uuid.UUID, notifi params = append(params, id) } - _, err := db.Exec("DELETE FROM notification WHERE user_id = $1 AND id IN ("+strings.Join(statements, ", ")+")", params...) + query := "DELETE FROM notification WHERE user_id = $1 AND id IN (" + strings.Join(statements, ", ") + ")" + logger.Debug("Delete notification query", zap.String("query", query), zap.Any("params", params)) + _, err := db.Exec(query, params...) if err != nil { logger.Error("Could not delete notifications.", zap.Error(err)) return err