TypeError: Cannot read property 'constructor' of undefined
2016-02-22T23:58:15.157657+00:00 app[web.1]: ^
2016-02-22T23:58:15.157908+00:00 app[web.1]: at hashPassword (/app/node_modules/@nxus/users/lib/models/userModel.js:47:31)
2016-02-22T23:58:15.157909+00:00 app[web.1]: at [object Object].beforeCreate (/app/node_modules/@nxus/users/lib/models/userModel.js:154:23)
2016-02-22T23:58:15.157909+00:00 app[web.1]: at fn (/app/node_modules/waterline/lib/waterline/utils/callbacksRunner.js:41:10)
2016-02-22T23:58:15.157910+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:162:20
2016-02-22T23:58:15.157911+00:00 app[web.1]: at iterate (/app/node_modules/waterline/node_modules/async/lib/async.js:256:13)
2016-02-22T23:58:15.157914+00:00 app[web.1]: at Object.async.forEachOfSeries.async.eachOfSeries (/app/node_modules/waterline/node_modules/async/lib/async.js:275:9)
2016-02-22T23:58:15.157915+00:00 app[web.1]: at Object.async.forEachSeries.async.eachSeries (/app/node_modules/waterline/node_modules/async/lib/async.js:211:22)
2016-02-22T23:58:15.157915+00:00 app[web.1]: at Object.runner.beforeCreate (/app/node_modules/waterline/lib/waterline/utils/callbacksRunner.js:44:9)
2016-02-22T23:58:15.157917+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:699:13
2016-02-22T23:58:15.157916+00:00 app[web.1]: at /app/node_modules/waterline/lib/waterline/query/dql/create.js:180:17
2016-02-22T23:58:15.157918+00:00 app[web.1]: at iterate (/app/node_modules/waterline/node_modules/async/lib/async.js:256:13)
2016-02-22T23:58:15.157918+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:268:29
2016-02-22T23:58:15.157919+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:40:16
2016-02-22T23:58:15.157920+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:705:17
2016-02-22T23:58:15.157922+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:708:13
2016-02-22T23:58:15.157921+00:00 app[web.1]: at /app/node_modules/waterline/lib/waterline/query/validate.js:72:7
2016-02-22T23:58:15.157922+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:49:16
2016-02-22T23:58:15.157923+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:263:32
2016-02-22T23:58:15.157924+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:705:17
2016-02-22T23:58:15.157924+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:40:16
2016-02-22T23:58:15.157925+00:00 app[web.1]: at /app/node_modules/waterline/lib/waterline/query/validate.js:66:11
2016-02-22T23:58:15.157926+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:49:16
2016-02-22T23:58:15.157926+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:263:32
2016-02-22T23:58:15.157927+00:00 app[web.1]: at /app/node_modules/waterline/node_modules/async/lib/async.js:40:16
2016-02-22T23:58:15.157927+00:00 app[web.1]: at /app/node_modules/waterline/lib/waterline/query/validate.js:60:13
2016-02-22T23:58:15.157928+00:00 app[web.1]: at /app/node_modules/waterline/lib/waterline/utils/schema.js:151:44
2016-02-22T23:58:15.158038+00:00 app[web.1]: at runner (/app/node_modules/waterline/lib/waterline/query/validate.js:58:11)
2016-02-22T23:58:15.170703+00:00 app[web.1]: error: Forever detected script exited with code: 1
2016-02-22T23:58:15.175294+00:00 app[web.1]: error: Script restart attempt #2
This should throw a flash message instead.
Here's the Error