Skip to content
Browse files

cleanup

  • Loading branch information...
1 parent d007e98 commit 7603e4878aa625cb931015d55df41fe93de278cd @benjreinhart benjreinhart committed Mar 17, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/db/seeds.coffee
View
4 core/db/seeds.coffee
@@ -8,7 +8,7 @@ Edit = require "#{ APP_ROOT }/components/edits/datastore"
console.log 'Seeding database...'
deleteUsers = (cb) ->
- User.remove().exec (err, count) ->
+ User.remove (err, count) ->
cb err if err?
console.log "Removed #{count} records from User table"
cb null
@@ -30,7 +30,7 @@ users = (cb) ->
async.each dudes, save, cb
deleteEdits = (cb) ->
- Edit.remove().exec (err, count) ->
+ Edit.remove (err, count) ->
cb err if err?
console.log "Removed #{count} records from Edit table"
cb null

0 comments on commit 7603e48

Please sign in to comment.
Something went wrong with that request. Please try again.