order origins
This commit is contained in:
parent
ea57b2f489
commit
cafec373f1
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ func (r *repo) createOrigin(ctx context.Context, origin *Origin) error {
|
|||
}
|
||||
|
||||
func (r *repo) getOrigins(ctx context.Context) ([]Origin, error) {
|
||||
q := `SELECT * FROM merch_origins WHERE deleted_at IS NULL`
|
||||
q := `SELECT * FROM merch_origins WHERE deleted_at IS NULL ORDER BY id`
|
||||
|
||||
rows, err := r.db.Query(ctx, q)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue