fix(api): sort order
This commit is contained in:
parent
0e2a1d76da
commit
6f7f0234cb
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ def search_feature_flags(project_id: int, user_id: int, data: schemas.SearchFlag
|
|||
SELECT COUNT(1) OVER () AS count, {", ".join(feature_flag_columns)}
|
||||
FROM feature_flags
|
||||
WHERE {" AND ".join(constraints)}
|
||||
ORDER BY created_at {data.order}
|
||||
ORDER BY created_at {data.order.value}
|
||||
LIMIT %(limit)s OFFSET %(offset)s;
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue