Skip to content

Commit

Permalink
Tweaking flushing of old data.
Browse files Browse the repository at this point in the history
  • Loading branch information
benzenwen committed Nov 20, 2012
1 parent a3c62d7 commit ee3f30a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ var userSchema = new mongoose.Schema({
var PUser = mongoose.model('PowerUsers', userSchema);

// Clear out old data
PUser.remove({}, function(err) {
console.log('cleared out old data')
PUser.remove({}, function(err) {
if (err) {
console.log ('error deleting old data.');
}
});

// Creating one user.
Expand Down

0 comments on commit ee3f30a

Please sign in to comment.