Skip to content

🎧 Your Personal Streaming Service

fix(server): make DB `PRAGMA optimize` error non-fatal

Deluanbd3192be0b36
diff --git a/db/db.go b/db/db.go
index 168c12122..6e5b2f569 100644
--- a/db/db.go
+++ b/db/db.go
@@ -51,7 +51,6 @@ func Db() *sql.DB {
_, err = db.Exec("PRAGMA optimize=0x10002")
if err != nil {
log.Error("Error applying PRAGMA optimize", err)
- return nil
}
}
return db