Update gitignore and dispose DbConnected context

This commit is contained in:
Slendy 2023-01-22 05:45:39 -06:00
commit bd9a789fc3
No known key found for this signature in database
GPG key ID: 7288D68361B91428
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View file

@ -28,6 +28,7 @@ png/
lighthouse.config.json
lighthouse.yml
lighthouse.yml.configme
censor.yml
gitBranch.txt
gitVersion.txt
gitRemotes.txt

View file

@ -14,7 +14,8 @@ public static class ServerStatics
get {
try
{
return new Database().Database.CanConnect();
using Database db = new();
return db.Database.CanConnect();
}
catch(Exception e)
{