We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 434b272 commit efd2191Copy full SHA for efd2191
dao/postgres_impl.go
@@ -37,7 +37,7 @@ type pgFlagImpl struct {
37
// GetFlags return all the flags
38
func (m *pgFlagImpl) GetFlags(ctx context.Context) ([]model.FeatureFlag, daoErr.DaoError) {
39
var f []dbmodel.FeatureFlag
40
- err := m.conn.SelectContext(ctx, &f, "SELECT * FROM feature_flags")
+ err := m.conn.SelectContext(ctx, &f, "SELECT * FROM feature_flags ORDER BY last_updated_date DESC")
41
if err != nil {
42
if errors.Is(err, pgx.ErrNoRows) {
43
return []model.FeatureFlag{}, nil
0 commit comments