TypeError: undefined is not a function
at /usr/local/cozy/apps/photos/node_modules/cozydb/lib/cozymodel.js:125:18
at parseBody (/usr/local/cozy/apps/photos/node_modules/cozydb/node_modules/request-json-light/main.js:74:10)
at IncomingMessage.<anonymous> (/usr/local/cozy/apps/photos/node_modules/cozydb/node_modules/request-json-light/main.js:99:14)
at IncomingMessage.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:448:13)