Update texts
This commit is contained in:
parent
aa7bb22346
commit
6aaa14da76
2 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
# If the client is being served by the server itself, set to TRUE.
|
# 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_STATIC='true'
|
||||||
VITE_SERVER='http://localhost:3000'
|
VITE_SERVER='http://localhost:3000'
|
||||||
|
|
|
@ -205,7 +205,7 @@ app.post('/createPartyLine', [
|
||||||
lastActivity: Date.now()
|
lastActivity: Date.now()
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(`CREATE: Created party line: ${currentPartyLine}`);
|
console.log(`CREATE: { partyLine: ${currentPartyLine} }`);
|
||||||
res.status(200).send({ status: 'Party line created', currentPartyLine });
|
res.status(200).send({ status: 'Party line created', currentPartyLine });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('ERROR: Failed to create party line', 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' });
|
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
|
// Update the last event and broadcast it to all clients
|
||||||
partyLine.lastEvent = rumor;
|
partyLine.lastEvent = rumor;
|
||||||
|
@ -275,7 +275,7 @@ app.delete('/deletePartyLine', [
|
||||||
|
|
||||||
// Delete the party line
|
// Delete the party line
|
||||||
delete partyLines[currentPartyLine];
|
delete partyLines[currentPartyLine];
|
||||||
console.log(`DELETE: Deleted party line: ${currentPartyLine}`);
|
console.log(`DELETE: { partyLine: ${currentPartyLine} }`);
|
||||||
res.status(200).send({ status: 'Party line deleted', currentPartyLine });
|
res.status(200).send({ status: 'Party line deleted', currentPartyLine });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('ERROR: Failed to delete party line', error);
|
console.error('ERROR: Failed to delete party line', error);
|
||||||
|
@ -288,6 +288,6 @@ app.listen(PORT, () => {
|
||||||
console.log(`Rumor Party Line`);
|
console.log(`Rumor Party Line`);
|
||||||
console.log(`Internally running on http://localhost:${PORT} in ${process.env.ENVIRONMENT} mode.`);
|
console.log(`Internally running on http://localhost:${PORT} in ${process.env.ENVIRONMENT} mode.`);
|
||||||
if (process.env.DOCKER) {
|
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!\n↳ Check your external port in the compose file to avoid confusion!`);
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
Add table
Reference in a new issue