From 5822505189baea97346eb87c9afd5a4b932bcedc Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Wed, 21 Dec 2016 08:18:08 +0000 Subject: [PATCH] Fixed db issue --- Ombi.Store/DbConfiguration.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Ombi.Store/DbConfiguration.cs b/Ombi.Store/DbConfiguration.cs index bc519431b..9758509a8 100644 --- a/Ombi.Store/DbConfiguration.cs +++ b/Ombi.Store/DbConfiguration.cs @@ -51,16 +51,20 @@ namespace Ombi.Store { get { - if (File.Exists(OldPath)) + + if (!string.IsNullOrEmpty(_currentPath)) { - _currentPath = OldPath; + return _currentPath; } - if (File.Exists(NewCurrentPath)) + if (File.Exists(OldPath)) { - _currentPath = NewCurrentPath; + _currentPath = OldPath; + return _currentPath; } + _currentPath = NewCurrentPath; + return _currentPath; } }