monguurl icon indicating copy to clipboard operation
monguurl copied to clipboard

doc.model is not a function

Open bonesoul opened this issue 8 years ago • 1 comments

 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

bonesoul avatar Mar 03 '17 09:03 bonesoul

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.

ahultgren avatar Mar 03 '17 12:03 ahultgren