From 862fa7de890161bc31b0f42ccbaa0e5cc016174a Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Tue, 24 Jun 2025 17:44:22 -0400 Subject: [PATCH] Don't send full text back to client on save We return the stub after saving. When saving to HB MongoDB, the stub also includes the full text. This does not need to be sent back to the client. --- server/homebrew.api.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/homebrew.api.js b/server/homebrew.api.js index 2ab29f31b..392e175ca 100644 --- a/server/homebrew.api.js +++ b/server/homebrew.api.js @@ -412,6 +412,8 @@ const api = { const after = await afterSave(); if(!after) return; + saved.textBin = undefined; // Remove textBin from the saved object to save bandwidth + res.status(200).send(saved); }, deleteGoogleBrew : async (account, id, editId, res)=>{