We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4099fe2 commit 23a8348Copy full SHA for 23a8348
1 file changed
MyApp.ServiceInterface/AppData.cs
@@ -1362,7 +1362,9 @@ public IDbConnection OpenAiTaskDb(DateTime? createdDate=null)
1362
if (!OrmLiteConnectionFactory.NamedConnections.ContainsKey(monthDb))
1363
{
1364
var path = Config.TaskConnection.RightPart('=').LastLeftPart(';');
1365
- var dir = ContentRootPath.CombineWith(path.LastLeftPart('/'));
+ var dir = (path.StartsWith('/')
1366
+ ? path
1367
+ : ContentRootPath.CombineWith(path)).LastLeftPart('/');
1368
dir.AssertDir();
1369
var connString = Config.TaskConnection.Replace("{db}", monthDb);
1370
dbFactory.RegisterConnection(monthDb, connString, SqliteConfiguration.Configure(SqliteDialect.Create()));
0 commit comments