monguurl
monguurl copied to clipboard
doc.model is not a function
error: uncaught exception: TypeError: doc.model is not a function
- monguurl.js:89 model.hasUniqueAlias
[firsat.io]/[monguurl]/lib/monguurl.js:89:11
- monguurl.js:64 model.findUniqueAlias
[firsat.io]/[monguurl]/lib/monguurl.js:64:11
- monguurl.js:57 model.makeUniqueAlias
[firsat.io]/[monguurl]/lib/monguurl.js:57:11
- monguurl.js:40 model.<anonymous>
[firsat.io]/[monguurl]/lib/monguurl.js:40:12
- hooks.js:62 _next
[firsat.io]/[hooks-fixed]/hooks.js:62:30
- hooks.js:186 fnWrapper
[firsat.io]/[hooks-fixed]/hooks.js:186:8
- schema.js:832 model.<anonymous>
[firsat.io]/[mongoose]/lib/schema.js:832:7
- hooks.js:62 _next
[firsat.io]/[hooks-fixed]/hooks.js:62:30
- hooks.js:186 fnWrapper
[firsat.io]/[hooks-fixed]/hooks.js:186:8
- schema.js:225 model.fn
[firsat.io]/[mongoose]/lib/schema.js:225:11
- hooks.js:62 _next
[firsat.io]/[hooks-fixed]/hooks.js:62:30
- hooks.js:186 fnWrapper
[firsat.io]/[hooks-fixed]/hooks.js:186:8
- schema.js:200
[firsat.io]/[mongoose]/lib/schema.js:200:17
- index.js:127
[firsat.io]/[mongoose]/[kareem]/index.js:127:16
- next_tick.js:73 _combinedTickCallback
internal/process/next_tick.js:73:7
- next_tick.js:104 process._tickCallback
internal/process/next_tick.js:104:9
Thanks for the report! Unfortunately I no longer have the time to maintain this repo (I no longer use mongo nor mongoose). Maintainers are welcome.