Added MongoDb connection string to config options

This commit is contained in:
2024-12-06 13:11:47 +03:30
parent 321f48660d
commit 4495e6b605
5 changed files with 12 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ namespace mstdnCats.Services
{
public static async Task<List<MediaAttachment>> checkAndInsertPostsAsync(IDocumentCollection<Post> _db, TelegramBotClient _bot, List<Post> fetchedPosts, ILogger<MastodonBot>? logger)
{
var config = configData.fetchData();
var config = ConfigData.fetchData();
// Get existing posts
var existingPosts = _db.AsQueryable().Select(x => x.mstdnPostId).ToArray();