mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-28 21:31:03 +00:00
17 lines
368 B
TypeScript
17 lines
368 B
TypeScript
import { gamesSublevel, levelKeys } from "@main/level";
|
|
|
|
export const clearGamesRemoteIds = async () => {
|
|
const games = await gamesSublevel.values().all();
|
|
|
|
await gamesSublevel.batch(
|
|
games.map((game) => ({
|
|
type: "put",
|
|
key: levelKeys.game(game.shop, game.objectId),
|
|
value: {
|
|
...game,
|
|
remoteId: null,
|
|
},
|
|
}))
|
|
);
|
|
};
|