|
|
@ -88,6 +88,7 @@ func (r *statsRepository) List(ctx context.Context, scopeIDs ...int) ([]entities |
|
|
|
Select("id, scope_id, name, description, weight, allowed_amounts, is_primary"). |
|
|
|
From("stat"). |
|
|
|
Where(squirrel.Eq{"scope_id": scopeIDs}). |
|
|
|
OrderBy("is_primary DESC", "name"). |
|
|
|
RunWith(r.db). |
|
|
|
Query() |
|
|
|
if err == sql.ErrNoRows { |
|
|
|