Add more missing database close calls

This commit is contained in:
Drew DeVault 2024-01-17 10:42:14 +01:00
parent 34fa7d7556
commit 26809b6b5b
2 changed files with 2 additions and 0 deletions

View File

@ -216,6 +216,7 @@ func postUpdate() {
if err != nil {
logger.Fatalf("Failed to open a database connection: %v", err)
}
defer db.Close()
dbinfo, err := fetchInfoForPush(db, pcontext.Repo.OwnerName, pcontext.Repo.Id, pcontext.Repo.Name, pcontext.Repo.Visibility, newDescription, newVisibility)
if err != nil {

View File

@ -32,6 +32,7 @@ func stage3() {
if err != nil {
logger.Fatalf("Failed to open a database connection: %v", err)
}
defer db.Close()
var subscriptions []WebhookSubscription
var deliveries []WebhookDelivery