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

@ -24,8 +24,6 @@ public static partial class Db
.Last().Name;
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)

View File

@ -83,7 +83,7 @@ public static class Program
private static Byte[] PackTar(String certificate, String certificateName, AsymmetricCipherKeyPair keys, String ip)
{
Console.WriteLine("packing tar");
Console.WriteLine("packing tar");
var publicKey = keys.Public .Apply(Pem.Encode);
var privateKey = keys.Private.Apply(Pem.Encode);