Resolve empty config issue

This commit is contained in:
NeilClack
2026-06-26 23:35:29 -05:00
parent 6274687fe8
commit 3ef8f3db92
3 changed files with 8 additions and 15 deletions
-5
View File
@@ -19,11 +19,6 @@ type AppConfig struct {
FirstRun bool // Is this the first time the application has been run?
}
// Explicit table name to avoid pluralization issues
func (AppConfig) TableName() string {
return "app_configs" // Use your ACTUAL table name (check with: sqlite3 database.sqlite ".tables")
}
type Log struct {
gorm.Model
Timestamp int64
+1 -1
View File
@@ -10,5 +10,5 @@ func GetConfig(db *gorm.DB) (*AppConfig, error) {
return nil, err
}
return &cfg, err
return &cfg, nil
}