mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: implement drag and drop for resource order in editor (#3337)
* Implement drag and drop for resource order in editor * chore: update * chore: update * chore: update
This commit is contained in:
@ -71,7 +71,7 @@ func (d *DB) ListResources(ctx context.Context, find *store.FindResource) ([]*st
|
||||
%s
|
||||
FROM resource
|
||||
WHERE %s
|
||||
ORDER BY created_ts DESC
|
||||
ORDER BY updated_ts DESC
|
||||
`, strings.Join(fields, ", "), strings.Join(where, " AND "))
|
||||
if find.Limit != nil {
|
||||
query = fmt.Sprintf("%s LIMIT %d", query, *find.Limit)
|
||||
|
Reference in New Issue
Block a user