Quick Note: Request Body

Heads up! In the latest version of Oak, the value property on the request body was changed to be asynchronous and now returns a Promise.

If you're using the latest versions of Deno and Oak, you'll want to update the following:

  const body = await ctx.request.body();

  launches.addOne(body.value);

To:

  const body = await ctx.request.body().value;

  launches.addOne(body);

That wasn't too bad! I'll see you back in the videos!