Skip to content

Instantly share code, notes, and snippets.

@cbrammer
Created November 14, 2012 17:24
Show Gist options
  • Save cbrammer/4073486 to your computer and use it in GitHub Desktop.
Save cbrammer/4073486 to your computer and use it in GitHub Desktop.
Join program fail
error: TypeError: Object #<Object> has no method 'forEach'
TypeError: Object #<Object> has no method 'forEach'
at Promise.<anonymous> (/opt/node/app/node_modules/payment-api/models/user_payment.js:165:30)
at Promise.addBack (/opt/node/app/node_modules/mongoose/lib/promise.js:128:8)
at Promise.EventEmitter.emit (events.js:96:17)
at Promise.emit (/opt/node/app/node_modules/mongoose/lib/promise.js:66:38)
at Promise.complete (/opt/node/app/node_modules/mongoose/lib/promise.js:77:20)
at Query.findOne (/opt/node/app/node_modules/mongoose/lib/query.js:1533:15)
at Model.Document.init (/opt/node/app/node_modules/mongoose/lib/document.js:229:11)
at Model.init (/opt/node/app/node_modules/mongoose/lib/model.js:192:36)
at Query.findOne (/opt/node/app/node_modules/mongoose/lib/query.js:1531:12)
at exports.tick (/opt/node/app/node_modules/mongoose/lib/utils.js:408:16)
info: shutting the server down
error: TypeError: Cannot read property 'order' of undefined
TypeError: Cannot read property 'order' of undefined
at UserPaymentSchema.post.Order.findById.models.Item.findById.User.findById.mailData.shouldSend (/opt/node/app/node_modules/payment-api/models/user_payment.js:95:104)
at Model.ProgramSchema.methods.notifyProgram (/opt/node/app/node_modules/user/models/program.js:63:10)
at /opt/node/app/node_modules/user/models/program.js:113:12
at Promise.next (/opt/node/app/node_modules/user/node_modules/waitress/index.js:76:10)
at Promise.addBack (/opt/node/app/node_modules/mongoose/lib/promise.js:128:8)
at Promise.EventEmitter.emit (events.js:99:17)
at Promise.emit (/opt/node/app/node_modules/mongoose/lib/promise.js:66:38)
at Promise.complete (/opt/node/app/node_modules/mongoose/lib/promise.js:77:20)
at handleSave (/opt/node/app/node_modules/mongoose/lib/model.js:331:13)
at exports.tick (/opt/node/app/node_modules/mongoose/lib/utils.js:408:16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment