Enormous refactor adding IndexedDB space and syncing.

This commit is contained in:
Zef Hemel
2022-04-06 15:39:20 +02:00
parent 38faf50ab8
commit eb781b9e19
16 changed files with 611 additions and 321 deletions
-1
View File
@@ -56,7 +56,6 @@ functions:
env: server
updateMaterializedQueriesOnPage:
path: ./materialized_queries.ts:updateMaterializedQueriesOnPage
env: server
updateMaterializedQueriesCommand:
path: ./materialized_queries.ts:updateMaterializedQueriesCommand
command:
+1 -1
View File
@@ -54,10 +54,10 @@ export async function updateMaterializedQueriesOnPage(pageName: string) {
let pages = await listPages();
if (orderBy) {
pages = pages.sort((a: any, b: any) => {
console.log(a, orderBy, a[orderBy]);
if (a[orderBy] === b[orderBy]) {
return 0;
}
if (a[orderBy] < b[orderBy]) {
return !!orderDesc ? 1 : -1;
} else {