A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix(integrations): sort media requests by last modified instead of creation date (#6264)
Thomasbcd36b1b2772
diff --git a/packages/integrations/src/overseerr/overseerr-integration.ts b/packages/integrations/src/overseerr/overseerr-integration.tsindex 643d2ac60..a4429bd27 100644--- a/packages/integrations/src/overseerr/overseerr-integration.ts+++ b/packages/integrations/src/overseerr/overseerr-integration.ts@@ -132,11 +132,14 @@ export class OverseerrIntegration},);- const allRequests = await fetchWithTrustedCertificatesAsync(this.url("/api/v1/request", { take: 20 }), {- headers: {- "X-Api-Key": this.getSecretValue("apiKey"),+ const allRequests = await fetchWithTrustedCertificatesAsync(+ this.url("/api/v1/request", { take: 20, sort: "modified" }),+ {+ headers: {+ "X-Api-Key": this.getSecretValue("apiKey"),+ },},- });+ );const pendingResults = (await getRequestsSchema.parseAsync(await pendingRequests.json())).results;const allResults = (await getRequestsSchema.parseAsync(await allRequests.json())).results;