We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d20b19 commit 0abb893Copy full SHA for 0abb893
src/lambda/promise-chuck-norris.js
@@ -2,7 +2,7 @@
2
// https://aws.amazon.com/blogs/compute/node-js-8-10-runtime-now-available-in-aws-lambda/
3
4
import fetch from 'node-fetch';
5
-export async function handler(event, context) {
+export function handler(event, context) {
6
return new Promise((resolve, reject) => {
7
fetch('https://api.chucknorris.io/jokes/random')
8
.then(response => {
0 commit comments