Skip to content

[BE] Use native node.js promise #1191

Description

@alexanmtz

✏️ Summary

Replace Bluebird promises with native JS promises in all modules and convert to TypeScript.

📋 Description

We're using Bluebird promises in modules like here: https://github.com/worknenjoy/gitpay/blob/master/src/modules/users/userAccount.js, and we want to replace them with native JS promises as discussed here:
#978

And convert to TypeScript and use async/await.

We have many API tests, so the tests should continue to pass, and no additional tests are needed for this.

🔍 Steps to Reproduce (or trigger)

  1. Run the project locally
  2. Run the Node server
  3. Run the front-end server
  4. Create a user

Check how to run the project locally here: https://github.com/worknenjoy/gitpay/blob/master/README.md.

✅ Expected Behavior

The tests should continue to pass, and the platform should continue working as it is today.

🛠️ Stack Affected

Node.js

💰 Is there a bounty for this issue?

No

📜 Bounty Details (if applicable)

Unfortunately, this issue is not part of our bounty program, and you should work on it as a contributor.

For a starter contributor, it could be a good chance to get your PR reviewed and get some experience.

Metadata

Metadata

Fields

No fields configured for Feature.

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions