feat(chalice): search records sort order
This commit is contained in:
parent
4055426610
commit
a872ae2d39
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ def search_records(project_id, data: schemas_ee.AssistRecordSearchPayloadSchema,
|
|||
INNER JOIN projects USING (project_id)
|
||||
LEFT JOIN users USING (user_id)
|
||||
WHERE {" AND ".join(conditions)}
|
||||
ORDER BY assist_records.created_at
|
||||
ORDER BY assist_records.created_at {data.order}
|
||||
LIMIT %(p_limit)s OFFSET %(p_start)s;""",
|
||||
params)
|
||||
cur.execute(query)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue