mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-31 18:10:50 +01:00
refactor: Update models to use DatabaseV2 instead of DataSourceV2
This commit is contained in:
@@ -39,7 +39,7 @@ func NewDataSourcePostgresqlService(colId primitive.ObjectID, dsId primitive.Obj
|
||||
if svc.ds.Host == "" {
|
||||
svc.ds.Host = constants.DefaultHost
|
||||
}
|
||||
if svc.ds.Port == "" {
|
||||
if svc.ds.Port == 0 {
|
||||
svc.ds.Port = constants.DefaultPostgresqlPort
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user