mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 20:56:54 +00:00
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.
This commit is contained in:
1 parent
b671cf7b02
commit
862fa7de89
1 file changed
+2
@@ -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)=>{
|
||||
|
||||
Reference in new issue
Block a user