Skip to content

Issue with DELETE #10

@ghost

Description

Hi guys

I noticed the latest implementation is getting errors handling DELETE requests after upgrading recently.

Here are the relevant versions from package.json :

OLD WORKING

"backbone": "~1.1.2", "backbone-rest": "~0.5.7", "backbone-orm": "~0.5.15",

NEW BROKEN

"backbone": "^1.1.2", "backbone-orm": "^0.7.0", "backbone-rest": "^0.7.2",

Here is the error that Im seeing ...

Error 500 from DELETE /api/tag/51: TypeError: Object #<Schema> has no method 'idType' at Function.module.exports.JSONUtils.parseField (/app/node_modules/backbone-rest/node_modules/backbone-orm/backbone-orm.js:1007:52) at RESTController.module.exports.RESTController.requestId (/app/node_modules/backbone-rest/lib/rest_controller.js:51:24) at RESTController.module.exports.RESTController.destroy (/app/node_modules/backbone-rest/lib/rest_controller.js:220:42) at /app/node_modules/backbone-rest/lib/lib/json_controller.js:88:23 at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:76:5) at next (/app/node_modules/express/lib/router/route.js:100:13) at RESTController.module.exports.JSONController._setHeaders (/app/node_modules/backbone-rest/lib/lib/json_controller.js:115:14) at /app/node_modules/backbone-rest/lib/lib/json_controller.js:11:61 at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:76:5) at next (/app/node_modules/express/lib/router/route.js:100:13)

Thanks for your work - REST/ORM all in one, brilliant!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions