chore: level as external dep

This commit is contained in:
Chubby Granny Chaser 2025-01-22 00:09:21 +00:00
parent 0f0a67b55e
commit 71cb4cd240
No known key found for this signature in database
7 changed files with 15 additions and 9 deletions

View file

@ -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 };
};

View file

@ -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;