fix: formatting

This commit is contained in:
Moyasee
2025-10-30 23:26:22 +02:00
parent 101bc35460
commit 4dd3c9de76
8 changed files with 108 additions and 55 deletions

View File

@@ -409,22 +409,31 @@ export class HydraApi {
downloadSourceIds,
gamesCount: games.length,
since,
isLoggedIn: this.isLoggedIn()
isLoggedIn: this.isLoggedIn(),
});
try {
const result = await this.post<Array<{
shop: string;
objectId: string;
newDownloadOptionsCount: number;
downloadSourceIds: string[];
}>>("/download-sources/changes", {
downloadSourceIds,
games,
since,
}, { needsAuth: true });
logger.info("HydraApi.checkDownloadSourcesChanges completed successfully:", result);
const result = await this.post<
Array<{
shop: string;
objectId: string;
newDownloadOptionsCount: number;
downloadSourceIds: string[];
}>
>(
"/download-sources/changes",
{
downloadSourceIds,
games,
since,
},
{ needsAuth: true }
);
logger.info(
"HydraApi.checkDownloadSourcesChanges completed successfully:",
result
);
return result;
} catch (error) {
logger.error("HydraApi.checkDownloadSourcesChanges failed:", error);