-
-
Save jeffyuhaoliu/6466633 to your computer and use it in GitHub Desktop.
Node.js MongoDB HW#3.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
posts.insert(post, function(err, doc){ | |
if (!err) { | |
console.log("Inserted new post"); | |
return callback(null, permalink); | |
} | |
return callback(err, null) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment