You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The resulting entity of the awaited #save$ method does not include an id. It should.
Promisified:
constproduct=awaitseneca.make('product').data$({label: 'Legions of Rome'}).save$()console.log(product)// outputs: Entity { 'entity$': '-/-/product', label: 'Legions of Rome' }// the returned entity has no id
Traditional callback-based:
seneca.make('product').data$({label: 'Legions of Rome'}).save$((err,out)=>{if(err)returndone(err)console.log(out)// outputs: Entity { 'entity$': '-/-/product', label: 'Legions of Rome', id: 'j0s5rs' }// the returned entity has the idreturndone()})
The bug has been first observed during writing of automated tests in the mem-store.
The text was updated successfully, but these errors were encountered:
The resulting entity of the awaited
#save$
method does not include an id. It should.Promisified:
Traditional callback-based:
The bug has been first observed during writing of automated tests in the mem-store.
The text was updated successfully, but these errors were encountered: