This commit is contained in:
Kar
2025-01-18 14:58:45 +00:00
parent 956d0a72bd
commit 92974caef1
3 changed files with 27 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
const mariadb = require('mariadb');
const gameInfo = async (req, res) => {
// Create a connection pool
const pool = mariadb.createPool({
host: process.env.MARIA_HOST,
@@ -43,7 +43,8 @@ const pool = mariadb.createPool({
connection.query(query2, [queryValue]),
]);
const domain = 'https://domain.com/gamelink/?id=';
// const domain = 'https://domain.com/gamelink/?id=';
const domain = process.env.GAME_DOMAIN;
const formattedGame1 = game_cross_varient1.map(game => ({
...game,
game_link: `${domain}sdfs${game.id}`,