★ wanayoo — archive 1999 https://github.com/SAP-samples/cloud-function-nodejs-samples/issues/17Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

@piejanssens piejanssens commented Sep 25, 2020

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 join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.