feat(resources): add cursor, group by on /api/favorites/resources

This commit is contained in:
Edouard Vanbelle
2026-05-28 10:08:38 +02:00
parent 5790a1459f
commit 607ae5e6df
15 changed files with 1265 additions and 209 deletions
+2 -6
View File
@@ -508,12 +508,8 @@ const batchToolbar = {
const data = await response.json();
const inserted = data.stats?.inserted || 0;
// Replace cache directly from response (no extra GET)
if (data.favorites && favorites._replaceCacheFromResponse) {
favorites._replaceCacheFromResponse(data.favorites);
} else {
await favorites._fetchFromServer();
}
// Re-fetch the isFavorite cache from the server.
await favorites._fetchFromServer();
this.clear();
loadFiles();