Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Use Promises #7

Closed
xmakro opened this issue Nov 1, 2015 · 2 comments
Closed

Use Promises #7

xmakro opened this issue Nov 1, 2015 · 2 comments

Comments

@xmakro
Copy link

xmakro commented Nov 1, 2015

todoService.create({
  text: 'A todo',
  complete: false
}, function(error, todo) {
  console.log('Success');
});

Should be:

todoService.create({
  text: 'A todo',
  complete: false
}).then(function (todo) {
  console.log('Success');
});
@daffl
Copy link
Member

daffl commented Nov 1, 2015

It should indeed. I'm working on 0.3.0 which will be migrated to ES6, support batches (https://github.com/feathersjs/feathers-batch) and promises.

@daffl
Copy link
Member

daffl commented Nov 15, 2015

This is available in the 0.3.0 release. The plugin has also been migrated to ES6.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants