mirror of
https://github.com/usememos/memos.git
synced 2025-10-29 07:48:14 +08:00
chore: listMemos sort by id for memos post/update at the same time (#1866)
This commit is contained in:
parent
847b4605f4
commit
63d6b6f9f9
1 changed files with 1 additions and 0 deletions
|
|
@ -301,6 +301,7 @@ func listMemos(ctx context.Context, tx *sql.Tx, find *FindMemoMessage) ([]*MemoM
|
|||
} else {
|
||||
orders = append(orders, "created_ts DESC")
|
||||
}
|
||||
orders = append(orders, "id DESC")
|
||||
|
||||
query := `
|
||||
SELECT
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue