feat: add needsAuth: false to /games/download

This commit is contained in:
Zamitto 2024-09-13 20:30:54 -03:00
parent 7846ecbd4f
commit f439b6809c

View File

@ -4,10 +4,14 @@ import { gameRepository } from "@main/repository";
import { logger } from "../logger";
export const createGame = async (game: Game) => {
HydraApi.post("/games/download", {
objectId: game.objectID,
shop: game.shop,
}).catch((err) => {
HydraApi.post(
"/games/download",
{
objectId: game.objectID,
shop: game.shop,
},
{ needsAuth: false }
).catch((err) => {
logger.error("Failed to create game download", err);
});