Formatting

This commit is contained in:
Basique Evangelist 2021-03-02 22:13:33 +03:00
parent 878eef6485
commit 73e1802cb4
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using Microsoft.Extensions.Options;
using MySql.Data.MySqlClient;
using Dapper;
@ -51,7 +51,7 @@ namespace JetHerald
" FROM topic t " +
" LEFT JOIN topic_chat tc ON t.TopicId = tc.TopicId AND tc.ChatId = @chatId " +
" WHERE ReadToken = @token",
new { token, chatId});
new { token, chatId });
}
public async Task<Topic> CreateTopic(long userId, string name, string descr)

View File

@ -33,7 +33,7 @@ namespace JetHerald
if (Config.UseProxy)
{
var httpProxy = new WebProxy(Config.ProxyUrl)
{ Credentials = new NetworkCredential(Config.ProxyLogin, Config.ProxyPassword) };
{ Credentials = new NetworkCredential(Config.ProxyLogin, Config.ProxyPassword) };
Client = new TelegramBotClient(Config.ApiKey, httpProxy);
}
else
@ -78,7 +78,7 @@ namespace JetHerald
}
catch (Exception e)
{
Log.LogError(e, "Exception occured during handling of command: "+ msg.Text);
Log.LogError(e, "Exception occured during handling of command: " + msg.Text);
}
}
}

View File

@ -37,7 +37,7 @@ namespace JetHerald
{
app.UseDeveloperExceptionPage();
}
app.UseRouting();
app.UseEndpoints(endpoints =>
{