Fixed bug on database

This commit is contained in:
Noe 2024-01-25 22:30:12 +01:00
parent 668f1fe7d4
commit 0babdf71a9
2 changed files with 3 additions and 4 deletions

View File

@ -25,8 +25,6 @@ public static partial class Db
Console.WriteLine("latestdb is "+latestDb);
//This is the file connection from the DbBackups folder
var fileConnection = new SQLiteConnection("DbBackups/" + latestDb);
@ -41,7 +39,8 @@ public static partial class Db
fileConnection.CreateTable<Error>();
fileConnection.CreateTable<Warning>();
return CopyDbToMemory(fileConnection);
return fileConnection;
//return CopyDbToMemory(fileConnection);
}
private static SQLiteConnection CopyDbToMemory(SQLiteConnection fileConnection)