mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix order by pinned
This commit is contained in:
@@ -96,7 +96,10 @@ func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo
|
||||
}
|
||||
}
|
||||
|
||||
orders := []string{"pinned DESC"}
|
||||
orders := []string{}
|
||||
if find.OrderByPinned {
|
||||
orders = append(orders, "pinned DESC")
|
||||
}
|
||||
if find.OrderByUpdatedTs {
|
||||
orders = append(orders, "updated_ts DESC")
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user