Enable presaving by default rather than having it gated behind BetaMode

This commit is contained in:
David Dworken
2023-11-12 05:19:31 -08:00
parent 4f7cef19c9
commit b3e145d764
7 changed files with 46 additions and 8 deletions

View File

@ -840,7 +840,8 @@ func retryingSearch(ctx context.Context, db *gorm.DB, query string, limit int, c
if err != nil {
return nil, err
}
if hctx.GetConf(ctx).BetaMode {
if hctx.GetConf(ctx).EnablePresaving {
// Sort by StartTime when presaving is enabled, since presaved entries may not have an end time
tx = tx.Order("start_time DESC")
} else {
tx = tx.Order("end_time DESC")