senecajs / seneca-entity

Entity plugin for seneca
MIT License
13 stars 15 forks source link

load$ does not execute when query is null #44

Open rjrodger opened 7 years ago

rjrodger commented 7 years ago

in make-entity.js:

  // empty query gives empty result
  if (q == null) {
    return cb()
  }

Is this correct? It means a role:entity,cmd:load does not get sent - and this is surprising as it removes 1-1 mapping with convenience API

msg should probably be sent even with null query for consistency