feat: adding dexie

This commit is contained in:
Chubby Granny Chaser 2024-09-22 17:45:50 +01:00
parent 50028fbfd8
commit 339dc89702
No known key found for this signature in database

View File

@ -3,21 +3,21 @@ import { shuffle } from "lodash-es";
import { getSteam250List } from "@main/services";
import { registerEvent } from "../register-event";
import { getSteamGameById } from "../helpers/search-games";
// import { getSteamGameById } from "../helpers/search-games";
import type { Steam250Game } from "@types";
const state = { games: Array<Steam250Game>(), index: 0 };
const filterGames = async (games: Steam250Game[]) => {
const filterGames = async (_games: Steam250Game[]) => {
const results: Steam250Game[] = [];
for (const game of games) {
const steamGame = await getSteamGameById(game.objectID);
// for (const game of games) {
// const steamGame = await getSteamGameById(game.objectID);
if (steamGame?.repacks.length) {
results.push(game);
}
}
// if (steamGame?.repacks.length) {
// results.push(game);
// }
// }
return results;
};