Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.get( '/', function( req, res ) {
app.post( '/', function( req, res ) {
if( process.env["LOG_REQUESTS"] ) {
console.log("Logging request body");
console.log(req.body);
console.log(JSON.stringify(req.body, null, 2)); // Pretty print
}

const changeSets = req.body.changeSets;
Expand All @@ -39,7 +39,7 @@ app.post( '/', function( req, res ) {
} );

// inform watchers
informWatchers( changeSets, res, muCallIdTrail );
informWatchers( changeSets, res, muCallIdTrail );

// push relevant data to interested actors
res.status(204).send();
Expand Down Expand Up @@ -118,7 +118,8 @@ function formatChangesetBody( changeSets, options ) {
changeSets.map( (change) => {
return {
inserts: change.insert,
deletes: change.delete
deletes: change.delete,
index: change.index
};
} ) );
}
Expand Down