From 3d0c9d84f28a024ed2f3b51825dba2e295207ea5 Mon Sep 17 00:00:00 2001 From: Matteo Cominetti Date: Thu, 8 Dec 2022 17:30:01 +0100 Subject: [PATCH] fix(core): fixes issues using the new sqlite on network drives (#1989) * fix(core): fixes issues using the new sqlite on network drives * chore: removes duplicated using --- Core/Core/Transports/SQLite.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Core/Core/Transports/SQLite.cs b/Core/Core/Transports/SQLite.cs index fb0a179c8c..0cfa884868 100644 --- a/Core/Core/Transports/SQLite.cs +++ b/Core/Core/Transports/SQLite.cs @@ -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 @@ -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 {