mirror of
https://github.com/usememos/memos.git
synced 2024-12-20 09:41:58 +03:00
chore: listMemos sort by id for memos post/update at the same time (#1866)
This commit is contained in:
parent
847b4605f4
commit
63d6b6f9f9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user