devinivy / bedwetter

Auto-generated, RESTful, CRUDdy route handlers for Waterline models in hapi
64 stars 11 forks source link

Bug with add function #15

Open MattSapet opened 9 years ago

MattSapet commented 9 years ago

Bedwetter isn't reflecting the newly created association correctly. Newly created comment from request.response.source:

{ body: 'Hey @don-moe check out this trixel!',
  owner: 1,
  createdAt: Mon Jun 01 2015 13:57:44 GMT-0400 (EDT),
  updatedAt: Mon Jun 01 2015 13:57:44 GMT-0400 (EDT),
  id: 6 }

It is missing a trixel field. Bedwetter seems to be returning a stale version for the record.

devinivy commented 9 years ago

For the add bedwetter, one-to-many associations are incorrectly not being reflected on the response for a newly created record.