Update texts

This commit is contained in:
pedrocx486 2025-01-28 00:08:00 -03:00
parent aa7bb22346
commit 6aaa14da76
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
# If the client is being served by the server itself, set to TRUE.
# If you're serving this from a CDN, set to FALSE and update the SERVER variable to point to the server URL.
# If you're running locally in dev mode, set to FALSE and update the SERVER variable to point to the server URL.
VITE_STATIC='true'
VITE_SERVER='http://localhost:3000'

View file

@ -205,7 +205,7 @@ app.post('/createPartyLine', [
lastActivity: Date.now()
};
console.log(`CREATE: Created party line: ${currentPartyLine}`);
console.log(`CREATE: { partyLine: ${currentPartyLine} }`);
res.status(200).send({ status: 'Party line created', currentPartyLine });
} catch (error) {
console.error('ERROR: Failed to create party line', error);
@ -229,7 +229,7 @@ app.post('/rumor', [
return res.status(404).send({ status: 'Party line not found' });
}
console.log(`RECEIVE: Received rumor for party line ${connectedPartyLine}: ${rumor}`);
console.log(`RECEIVE: { partyLine: ${connectedPartyLine}, rumor: ${rumor} }`);
// Update the last event and broadcast it to all clients
partyLine.lastEvent = rumor;
@ -275,7 +275,7 @@ app.delete('/deletePartyLine', [
// Delete the party line
delete partyLines[currentPartyLine];
console.log(`DELETE: Deleted party line: ${currentPartyLine}`);
console.log(`DELETE: { partyLine: ${currentPartyLine} }`);
res.status(200).send({ status: 'Party line deleted', currentPartyLine });
} catch (error) {
console.error('ERROR: Failed to delete party line', error);
@ -288,6 +288,6 @@ app.listen(PORT, () => {
console.log(`Rumor Party Line`);
console.log(`Internally running on http://localhost:${PORT} in ${process.env.ENVIRONMENT} mode.`);
if (process.env.DOCKER) {
console.log(`You're running on Docker! \nCheck your external port in the compose file to avoid confusion!`);
console.log(`You're running on Docker!\nCheck your external port in the compose file to avoid confusion!`);
}
});