feat: require PathDB config in appsettings.json

This commit is contained in:
jim committed 2026-05-08 16:24:43 -05:00
1 parent b68a9833d8
commit acc5e885a8
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -85,8 +85,8 @@ namespace URLNotesGrabberCORE
args = filteredArgs.ToArray();
string? dbPath = config["appSettings:PathDB"];
if (string.IsNullOrWhiteSpace(dbPath))
dbPath = Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", "tl.db");
if (string.IsNullOrEmpty(dbPath))
throw new InvalidOperationException("PathDB is not configured in appsettings.json");
ApiKeyPool.Initialize(config, dbPath, "appsettings.json", apiExplicitlySet ? apiSectionName : null);