Fixed bug on database
This commit is contained in:
parent
668f1fe7d4
commit
0babdf71a9
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue