strider icon indicating copy to clipboard operation
strider copied to clipboard

TypeError: Object #<Object> has no method 'collaborator_invite_new'

Open leutrimhusaj opened this issue 11 years ago • 3 comments

This is what i get when adding an collaborator to an existing project.

strider stderr | TypeError: Object # has no method 'collaborator_invite_new' at Object.exports.send_invite_collaborator_new_user (/opt/strider/src/lib/email.js:115:24) at Promise. (/opt/strider/src/lib/routes/api/collaborators/api.js:48:10) at Promise. (/opt/strider/src/node_modules/mongoose/node_modules/mpromise/lib/promise.js:177:8) at Promise.EventEmitter.emit (events.js:98:17) at Promise.emit (/opt/strider/src/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38) at Promise.fulfill (/opt/strider/src/node_modules/mongoose/node_modules/mpromise/lib/promise.js:97:20) at handleSave (/opt/strider/src/node_modules/mongoose/lib/model.js:133:13) at /opt/strider/src/node_modules/mongoose/lib/utils.js:408:16 at /opt/strider/src/node_modules/mongoose/node_modules/mongodb/lib/mongodb/collection/core.js:128:9 at /opt/strider/src/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1174:7 at /opt/strider/src/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1882:9 at Server.Base._callHandler (/opt/strider/src/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:453:41) at /opt/strider/src/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:487:18 at MongoReply.parseBody (/opt/strider/src/node_modules/mongoose/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5) at null. (/opt/strider/src/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:445:20) at EventEmitter.emit (events.js:95:17)

I think the problem is:

  • var body_text = text.collaborator_invite_new(jade_variables);
  • var body_html = html.collaborator_invite_new(jade_variables);

But the template name is collaborator_invite_new_user, is this correct?

leutrimhusaj avatar Jan 28 '15 10:01 leutrimhusaj

Thanks for letting us know! Will have a look at it.

knownasilya avatar Jan 28 '15 14:01 knownasilya

@leutrimhusaj can you try out master and see if that fixed your problem?

knownasilya avatar Jan 28 '15 14:01 knownasilya

@knownasilya I have changed the same code locally in my strider version and it works!

leutrimhusaj avatar Jan 28 '15 14:01 leutrimhusaj