From 4827c87c986d217a940ce87cc31245440d6b1ab6 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 18 Apr 2025 16:06:56 +0500 Subject: fix: github is now 40 (in event_type units) --- bot/src/github.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot') diff --git a/bot/src/github.cpp b/bot/src/github.cpp index d951e11..13825cb 100644 --- a/bot/src/github.cpp +++ b/bot/src/github.cpp @@ -64,7 +64,7 @@ namespace bot { pqxx::work work(conn); pqxx::result repos = - work.exec("SELECT name FROM events WHERE event_type = 10"); + work.exec("SELECT name FROM events WHERE event_type = 40"); // Adding new repos for (const auto &repo : repos) { @@ -165,7 +165,7 @@ namespace bot { "channel_name, c.alias_id AS channel_aid " "FROM events e " "INNER JOIN channels c ON c.id = e.channel_id " - "WHERE e.name = $1 AND e.event_type = 10", + "WHERE e.name = $1 AND e.event_type = 40", pqxx::params{pair.first}); for (const auto &event : events) { -- cgit v1.2.3