Skip to content

Instantly share code, notes, and snippets.

@mirageglobe
Last active August 29, 2015 14:18
Show Gist options
  • Save mirageglobe/d494d0bc769df6180514 to your computer and use it in GitHub Desktop.
Save mirageglobe/d494d0bc769df6180514 to your computer and use it in GitHub Desktop.
if ((plot_id > 0) && (plot_id < 11)) {
plot_number = "plot_" + plot_id;
}
if ((street_id !== null) && (plot_number !== null) && (plot_id !== null)) {
adc_print("update plot " + plot_number);
adc_print({valueOf(plot_number): user_id});
mystreet.update(
{ _id: street_id },
{
$set:
{
plot_number: user_id,
"status": "active"
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment