use sum instead of max when sorting movies

This commit is contained in:
TheBeastLT
2023-05-09 11:40:55 +02:00
parent 0eee56aaaf
commit bfaef92db7
3 changed files with 6 additions and 4 deletions

View File

@@ -41,7 +41,7 @@ builder.defineCatalogHandler((args) => {
staleRevalidate: STALE_REVALIDATE_AGE,
staleError: STALE_ERROR_AGE
}))
.catch(error => Promise.reject(`Failed retrieving catalog ${args.id}: ${JSON.stringify(error)}`));
.catch(error => Promise.reject(`Failed retrieving catalog ${args.id}: ${error.message}`));
})
async function getCursor(catalog, providers, genre, offset) {