0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

comment out hash check

This commit is contained in:
Trevor Buckner
2025-07-07 21:05:50 +00:00
parent 4c897fdeb5
commit 41daf8d172

View File

@@ -340,8 +340,10 @@ const api = {
const brewFromClient = api.excludePropsFromUpdate(req.body);
const brewFromServer = req.brew;
const serverHash = md5(brewFromServer.text);
console.log({serverHash: serverHash});
console.log({clientHash: brewFromClient.hash});
if((brewFromServer?.version !== brewFromClient?.version) || (serverHash !== brewFromClient.hash)) {
if((brewFromServer?.version !== brewFromClient?.version)) {
console.log(`Version mismatch on brew ${brewFromClient.editId}`);
res.setHeader('Content-Type', 'application/json');
return res.status(409).send(JSON.stringify({ message: `The server copy is out of sync with the saved brew. Please save your changes elsewhere, refresh, and try again.` }));