Compare commits

..

No commits in common. "ff25c0ecb99a72ae1156ed29af1b8a8b7344d39a" and "aa231d4f43501ef6368d09bb369d73b64a5b7d89" have entirely different histories.

View File

@ -64,7 +64,7 @@ const fs = require("fs").promises;
const path = require("path"); const path = require("path");
// Path to JSON file // Path to JSON file
const commentsFilePath = path.join(__dirname, "./json/gamepage/success.json"); const commentsFilePath = path.join(__dirname, "../json/gamepage/success.json");
// Read JSON file // Read JSON file
async function readComments() { async function readComments() {
@ -112,7 +112,7 @@ router.post("/update-like", async (req, res) => {
// Путь к JSON-файлу с корзиной // Путь к JSON-файлу с корзиной
const cartFilePath = path.join( const cartFilePath = path.join(
__dirname, __dirname,
"./json/home-page-data/games-in-cart.json" "../json/home-page-data/games-in-cart.json"
); );
// Функция для чтения JSON-файла // Функция для чтения JSON-файла