Логи
All checks were successful
Local Deploy with Docker / build-and-deploy (push) Successful in 22s
All checks were successful
Local Deploy with Docker / build-and-deploy (push) Successful in 22s
This commit is contained in:
parent
ea3237ebcc
commit
39f6705987
@ -37,7 +37,9 @@ public interface IUserOfTheDayRepository
|
|||||||
using (IDbConnection db = new NpgsqlConnection(_connectionString))
|
using (IDbConnection db = new NpgsqlConnection(_connectionString))
|
||||||
{
|
{
|
||||||
string query = "SELECT COUNT(1) FROM user_of_the_day WHERE chat_id = @ChatId AND date = @Date AND type = @Type";
|
string query = "SELECT COUNT(1) FROM user_of_the_day WHERE chat_id = @ChatId AND date = @Date AND type = @Type";
|
||||||
return await db.ExecuteScalarAsync<bool>(query, new { ChatId = chatId, Date = date, Type = type });
|
var res = await db.ExecuteScalarAsync<bool>(query, new { ChatId = chatId, Date = date, Type = type });
|
||||||
|
Console.WriteLine($"{chatId} : {type} : {res}");
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user