Skip to content

Commit

Permalink
fix(core): fixes issues using the new sqlite on network drives (#1989)
Browse files Browse the repository at this point in the history
* fix(core): fixes issues using the new sqlite on network drives

* chore: removes duplicated using
  • Loading branch information
teocomi authored Dec 8, 2022
1 parent e555564 commit 3d0c9d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Core/Core/Transports/SQLite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Threading.Tasks;
using System.Timers;
using Microsoft.Data.Sqlite;
using Microsoft.Data.Sqlite;
using Speckle.Core.Api;

namespace Speckle.Core.Transports
Expand Down Expand Up @@ -70,9 +69,7 @@ public SQLiteTransport(string basePath = null, string applicationName = "Speckle


RootPath = Path.Combine(basePath, applicationName, $"{scope}.db");
//fix for network drives: https://stackoverflow.com/a/18506097/826060
var prefix = RootPath.StartsWith(@"\\") ? @"\\" : "";
ConnectionString = string.Format("Data Source={0};", prefix + RootPath);
ConnectionString = string.Format("Data Source={0};", RootPath);

try
{
Expand Down

0 comments on commit 3d0c9d8

Please sign in to comment.