0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Small rearrangement

This commit is contained in:
Trevor Buckner
2025-07-09 22:09:16 -04:00
parent a02361ee65
commit daf4eceedd
2 changed files with 3 additions and 3 deletions

View File

@@ -339,9 +339,9 @@ const api = {
// Initialize brew from request and body, destructure query params, and set the initial value for the after-save method
const brewFromClient = api.excludePropsFromUpdate(req.body);
const brewFromServer = req.brew;
brewFromServer.text = brewFromServer.text.normalize();
splitTextStyleAndMetadata(brewFromServer);
brewFromServer.text = brewFromServer.text.normalize();
brewFromServer.hash = await md5(brewFromServer.text);
if((brewFromServer?.version !== brewFromClient?.version) || (brewFromServer?.hash !== brewFromClient?.hash)) {