Skip to content

Commit f7a61d3

Browse files
authored
Merge pull request feathersjs-ecosystem#506 from rybaczewa/master
Fix promise-to-callback hook preventing other hook import.
2 parents 80f6fe6 + 52f5d8e commit f7a61d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/services/promise-to-callback.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
/* globals setImmediate:1 */
33

4-
const asap = process && typeof process.nextTick === 'function'
5-
? process.nextTick : setImmediate;
6-
74
module.exports = function (promise) {
85
console.log('**Deprecated** The promiseToCallback hook will be removed next FeathersJS version.');
96

7+
const asap = process && typeof process.nextTick === 'function'
8+
? process.nextTick : setImmediate;
9+
1010
return cb => {
1111
promise.then(
1212
data => {

0 commit comments

Comments
 (0)