Skip to content

Instantly share code, notes, and snippets.

@abishekrsrikaanth
Created January 8, 2014 10:57
Show Gist options
  • Save abishekrsrikaanth/8315051 to your computer and use it in GitHub Desktop.
Save abishekrsrikaanth/8315051 to your computer and use it in GitHub Desktop.
DB.Tasks.findAll(
{where:
{status:'PENDING'}
},
{limit:10}
).success(function(tasks){
tasks.updateAttributes({'status':'IN-PROGRESS'}).success(function(){});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment