persvr / perstore

CommonJS persistence/object storage based on W3C's object store API.
http://www.persvr.org/
96 stars 20 forks source link

add notifications using a broken value for the channel #67

Open neonstalwart opened 9 years ago

neonstalwart commented 9 years ago

from what i understand, the return value for add should be the id. however, the implementation for construct.add returns the result of save which returns the object.

notifying store expects an id to be returned from add and so the channel value is '[object Object]' when it tries to assign the return value to the channel.