Unverified Commit 63d6b6f9 authored by Vespa314's avatar Vespa314 Committed by GitHub

chore: listMemos sort by id for memos post/update at the same time (#1866)

parent 847b4605
...@@ -301,6 +301,7 @@ func listMemos(ctx context.Context, tx *sql.Tx, find *FindMemoMessage) ([]*MemoM ...@@ -301,6 +301,7 @@ func listMemos(ctx context.Context, tx *sql.Tx, find *FindMemoMessage) ([]*MemoM
} else { } else {
orders = append(orders, "created_ts DESC") orders = append(orders, "created_ts DESC")
} }
orders = append(orders, "id DESC")
query := ` query := `
SELECT SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment