From 8644eb6b76f3ad1cea0396e7d2ffa1890c59c7b4 Mon Sep 17 00:00:00 2001 From: Pedro Lima Date: Mon, 11 Dec 2023 22:24:01 -0300 Subject: [PATCH] update makefile --- game/Backend/src/Services/compraServiceDB.js | 4 ---- game/docker-compose.yml | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/game/Backend/src/Services/compraServiceDB.js b/game/Backend/src/Services/compraServiceDB.js index b0a049a..f3c0c9e 100644 --- a/game/Backend/src/Services/compraServiceDB.js +++ b/game/Backend/src/Services/compraServiceDB.js @@ -1,7 +1,6 @@ import getDBConnection from "./getDBConnection.js"; export const compraItens = async (idPersonagem, idItem) => { - // const query = "'CALL comprarItem($1, $2)', [idPersonagem, idItem]"; return await getDBConnection("CALL comprarItem($1, $2)", [ idPersonagem, idItem, @@ -9,9 +8,6 @@ export const compraItens = async (idPersonagem, idItem) => { }; export const ItemComprados = async () => { - // console.log('teste'); - // const query = `SELECT * FROM inventario`; - // return await getDBConnection(query); const query = ` SELECT i.nome, c.quantidade, c.valorTotal, c.dataCompra FROM compra c diff --git a/game/docker-compose.yml b/game/docker-compose.yml index 5061eaa..8cf7ab0 100644 --- a/game/docker-compose.yml +++ b/game/docker-compose.yml @@ -45,6 +45,7 @@ services: - ./Backend/src:/usr/src/app/src app-vite: container_name: frontend_fear_hunger + restart: always stdin_open: true tty: true build: