mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 09:42:43 +00:00
Also log differences on MD5 mismatch
This commit is contained in:
@@ -354,7 +354,7 @@ const api = {
|
|||||||
|
|
||||||
if(brewFromServer?.hash !== brewFromClient?.hash) {
|
if(brewFromServer?.hash !== brewFromClient?.hash) {
|
||||||
console.log(`Hash mismatch on brew ${brewFromClient.editId}`);
|
console.log(`Hash mismatch on brew ${brewFromClient.editId}`);
|
||||||
|
debugTextMismatch(brewFromClient.text, brewFromServer.text, `edit/${brewFromClient.editId}`);
|
||||||
res.setHeader('Content-Type', 'application/json');
|
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.` }));
|
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.` }));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user