Skip to content

Asynch function #18

Description

@shahenazmonia

Database queries are asynch function so you have to make sure the data has been added into the database before setting the header and check the errors as well

postData(result, (err, data) => {});
res.writeHead(302, { Location: '/' });
res.end();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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