mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-20 01:33:56 +00:00
chore: level as external dep
This commit is contained in:
@@ -13,7 +13,7 @@ const getGameByObjectId = async (
|
||||
downloadsSublevel.get(gameKey),
|
||||
]);
|
||||
|
||||
if (!game) return null;
|
||||
if (!game || game.isDeleted) return null;
|
||||
|
||||
return { id: gameKey, ...game, download };
|
||||
};
|
||||
|
||||
@@ -152,7 +152,13 @@ export class DownloadManager {
|
||||
.values()
|
||||
.all()
|
||||
.then((games) => {
|
||||
return sortBy(games, "timestamp", "DESC");
|
||||
return sortBy(
|
||||
games.filter(
|
||||
(game) => !["complete", "seeding"].includes(game.status!)
|
||||
),
|
||||
"timestamp",
|
||||
"DESC"
|
||||
);
|
||||
});
|
||||
|
||||
const [nextItemOnQueue] = downloads;
|
||||
|
||||
Reference in New Issue
Block a user