Skip to content

Commit

Permalink
fix: add async to function
Browse files Browse the repository at this point in the history
  • Loading branch information
jlengstorf committed Sep 28, 2021
1 parent cc4ea25 commit 2639805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions netlify/functions/hello-world.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exports.handler = () => {
exports.handler = async () => {
return {
statusCode: 200,
body: 'hello world!',
body: "hello world!",
};
};
2 changes: 1 addition & 1 deletion src/pages/functions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Layout from '../components/layout.astro';
import FunctionTester from '../components/function-tester.jsx';
const functionCode = `
exports.handler = () => {
exports.handler = async () => {
return {
statusCode: 200,
body: 'hello world!',
Expand Down

0 comments on commit 2639805

Please sign in to comment.