Resolve empty config issue
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -10,5 +10,5 @@ func GetConfig(db *gorm.DB) (*AppConfig, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &cfg, err
|
||||
return &cfg, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user