Skip to content

Refactor Callbacks into Promises #34

@ts5746

Description

@ts5746

Description

The current implementation uses a mix of traditional JavaScript Callbacks in the main modules, and Promises in the sub-modules. Furthermore, the use of Promises is not fully consistent across the code, with mostly .then()/.catch() structures and some async / await.

Environment / Versions

Software

  • OS: any
  • Node.js: any
  • whiteflag-api: v1.1

Symptoms and Problem details

The code is less readable and maintainable. Tracing bugs and errors is harder.

Solution

Refactor the source code and use only Promises, in a consistent way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorCode review and refactoring

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions