Skip to content

Commit

Permalink
cleanup PUT request logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sdumetz committed Feb 12, 2024
1 parent 34d83f3 commit 3ec8f76
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/server/routes/scenes/put/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,10 @@ export default async function handlePutDocument(req :Request, res :Response){

const docDiff = merge.diffDoc(refDoc, newDoc);
if(Object.keys(docDiff).length == 0){
console.log("PUT document: Nothing to do");
//Nothing to do
return res.status(204).send();
}

console.log("PUT document (merge): ", JSON.stringify(docDiff, null, 2));
const mergedDoc = merge.applyDoc(currentDoc, docDiff);
let s = JSON.stringify(mergedDoc);
let id = await tr.writeDoc(s, scene, uid);
Expand Down

0 comments on commit 3ec8f76

Please sign in to comment.