Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass seneca instance on add callback #290

Merged
merged 2 commits into from
Jan 6, 2016
Merged

Pass seneca instance on add callback #290

merged 2 commits into from
Jan 6, 2016

Conversation

geek
Copy link
Member

@geek geek commented Jan 5, 2016

Closes #288
Closes #194

The result is

    const seneca = Seneca({ log: 'silent' })

    seneca.add({ cmd: 'foo' }, (args, reply) => {
      reply(null, { did: reply.seneca.did })
    })

    seneca.act({ cmd: 'foo' }, function (err, result) {
      // result.did === this.did
    })

@geek geek added this to the 1.0.0 milestone Jan 5, 2016
@AdrieanKhisbe
Copy link
Contributor

❕ 👍 ❗

@geek geek assigned geek and unassigned rjrodger Jan 6, 2016
geek added a commit that referenced this pull request Jan 6, 2016
Pass seneca instance on add callback
@geek geek merged commit 756725f into senecajs:master Jan 6, 2016
@geek geek deleted the issue288 branch January 6, 2016 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants