fixing adding of new instances

This commit is contained in:
Farhan Khan 2022-01-02 10:52:21 -05:00
parent c8ce84ece7
commit 10a3d2d4bb

View File

@ -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