Skip creating DB indexes in the production environment since we manually create those concurrently

This commit is contained in:
David Dworken 2023-11-12 03:21:01 -08:00
parent 0be6fe9724
commit 29fa710fbc
No known key found for this signature in database

View File

@ -94,10 +94,10 @@ func OpenDB() (*database.DB, error) {
if err != nil {
return nil, fmt.Errorf("failed to create underlying DB tables: %w", err)
}
}
err := db.CreateIndices()
if err != nil {
return nil, err
err = db.CreateIndices()
if err != nil {
return nil, err
}
}
return db, nil
}