Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2015 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/362bbfb3125a220b6d51 to your computer and use it in GitHub Desktop.
Save anonymous/362bbfb3125a220b6d51 to your computer and use it in GitHub Desktop.
var whichService = function(input) {
isDupe(input).then(function(data) {
console.log( data);
})
}
var isDupe = function(input) {
Article.findOne({ params: input.params, taskSubType: input.taskSubType ,taskType: input.taskType}, function(err, result){
if(result){return true;}
return false;
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment