Skip to content

Promise support (Node.js8) #30

@valonhaliti

Description

@valonhaliti

When passing data with callback it's working fine (the Next state is being triggered).

export const handler = (event, context, cb) => {
    cb(null, {
       data: result
     });
};

But when I'm using async functions (promises) instead:

export const handler = async event => {
    return {
       data: result
     };
};

It's not working, the process is shutting down. The Next state it's not being triggered at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions