///////// COMMENT ////////// var postComment = function(req, res, next) { var comment = { content : req.body.content, author : req.user._id, blogId : req.params.blogId }; Comment.create(comment, function(err, data) { if (err) { return next(err); } req.blog.comments.push(data); req.blog.save(function(err) { if (err) { return next(err); } var object = { to: req.blog.author.username, from: req.user.username, title: req.blog.title, comment: data.content }; if (req.user._id.toString() !== req.blog.author._id.toString()) { app.rabbit.publish('notify:email', object); } return res.sendStatus(200); }); }); }
context('when any dialogs are being refreshed', () => { beforeEach(() => { dialogs.resources[0].content[0].dialog_tabs[0].dialog_groups[0].dialog_fields[0].beingRefreshed = true
let docHash = hashString(minify(docs[i].content)); messages.push(new Message([docs[i].filePath, docs[fullDocHashes.get(docHash).docInd].filePath], constants.IDENTICAL_FILE, docHash)); state.dupedLines += numLines(docs[i].content); state.numFileDupes++; continue; let blocks = makeBlockArray(docs[i].content); let minifiedBlocks = minifyBlocks(blocks); messages.push(new Message([currentDoc], constants.INTRA_FILE_DUPLICATE, blockHash, block)); } else { messages[di].content.push(block);
var colTarget = tempItems[targetRowIndex].col[targetColIndex].content; var colContentLength = colTarget.length; // rowColsLength ==> 2 tempItems[row_i].col[col_i].content[content_i]; tempItems[row_i].col[col_i].content.splice(content_i, 1); {col.content.map((content, content_i) => ( <div key={row_i + col_i + content_i} style={{ border: "1px solid lightblue", padding: "5px 0" }} {col.content.map((content, content_i) => ( <div key={row_i + col_i + content_i}
var colTarget = tempItems[targetRowIndex].col[targetColIndex].content; var colContentLength = colTarget.length; // rowColsLength ==> 2 tempItems[row_i].col[col_i].content[content_i]; tempItems[row_i].col[col_i].content.splice(content_i, 1); {col.content.map((content, content_i) => ( <div key={row_i + col_i + content_i} style={{ border: "1px solid lightblue", padding: "5px 0" }} {col.content.map((content, content_i) => ( <div key={row_i + col_i + content_i}