mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-26 12:21:03 +00:00
fix: fixing multiple calls for backup
This commit is contained in:
@@ -66,13 +66,16 @@ export class Ludusavi {
|
||||
objectId: string,
|
||||
backupPath: string
|
||||
): Promise<LudusaviBackup | null> {
|
||||
console.log("a");
|
||||
const games = await this.findGames(shop, objectId);
|
||||
if (!games.length) return null;
|
||||
console.log("b");
|
||||
|
||||
const backupData = await this.worker.run(
|
||||
{ title: games[0], backupPath, preview: true },
|
||||
{ name: "backupGame" }
|
||||
);
|
||||
console.log("c");
|
||||
|
||||
return backupData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user