question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUESTION] Transaction returns bluebird promise?

See original GitHub issue

We recently migrated from knex 0.15.2 to 0.19.1. In the CHANGELOG, I noticed that starting from 0.18.0 you’ve removed bluebird from knex. However while looking at the transaction.js file I still see bluebird being used and it looks like the Promise being returned is a Bluebird promise and not a native one. Is my understanding correct? Or am i missing something?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
palashk92commented, Sep 4, 2019

Apologies for the late response and thank you for clarifying!

0reactions
kibertoadcommented, Sep 4, 2019

You are welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to return plain values from bluebird promises?
I am using Bluebird promises for running an async function in this fashion. var contract_creation = function creation(contractName){ return new ...
Read more >
Working with Callbacks - Bluebird JS
Promise returning functions should never throw, they should always successfully return a promise which is rejected in the case of an error. Throwing...
Read more >
Promise.resolve - Bluebird.js
Create a promise that is resolved with the given value. If value is already a trusted Promise , it is returned as is....
Read more >
Cancellation - Bluebird.js
function makeCancellableRequest(url) { return new Promise(function(resolve, ... The problem: "what should happen if .cancel() is called on firstConsumer ?
Read more >
Promise.using - Bluebird.js
If I return a Promise.reject(e) inside using() callback, like below, does client still get closed? function someFunct(callback) {. using(getConnection() ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found