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

This commit is contained in:
Vespa314 2023-06-30 22:56:31 +08:00 committed by GitHub
parent 847b4605f4
commit 63d6b6f9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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