Skip to content
This repository was archived by the owner on Dec 18, 2021. It is now read-only.

faas-sdk init - starts with broken code #17

Open
piejanssens opened this issue Sep 25, 2020 · 0 comments
Open

faas-sdk init - starts with broken code #17

piejanssens opened this issue Sep 25, 2020 · 0 comments

Comments

@piejanssens
Copy link

In the index.js

module.exports = function(event, context) {
    const rv = context.getSecretValueJSON('my-new-sec', 'rv.json');
    return rv.Info.Success;
};

has to be changed to this

module.exports = async function(event, context) {
    const rv = await context.getSecretValueJSON('my-new-sec', 'rv.json');
    return rv.Info.Success;
};
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant