fixing adding of new instances
This commit is contained in:
parent
c8ce84ece7
commit
10a3d2d4bb
@ -173,7 +173,7 @@ func LogInstance(endpoint string, o shared.RunningInstance) bool {
|
||||
return true // Endpoint already in database, continuing
|
||||
}
|
||||
|
||||
_, err = pool.Exec(context.Background(), "INSERT INTO instances (endpoint, autostart, state, software) VALUES($1, $2, $3, $4)", endpoint, true, "", o.Software)
|
||||
_, err = pool.Exec(context.Background(), "INSERT INTO instances (endpoint, state, software) VALUES($1, $2, $3)", endpoint, "", o.Software)
|
||||
if err != nil {
|
||||
logWarn("Error inserting %s into `instances`: "+endpoint, err)
|
||||
return true
|
||||
|
Loading…
x
Reference in New Issue
Block a user