[chore] Update npm packages and fix errors/run migrations

This commit is contained in:
2022-01-03 20:12:22 +01:00
parent 9de5aa16c9
commit 729138cffb
15 changed files with 186 additions and 182 deletions

View File

@@ -10,7 +10,7 @@ import {
// Block GET requests
export async function get ({ body, query }) {
export async function get ({ url, body }) {
return {
status: 403,
body: 'nope!'
@@ -21,7 +21,7 @@ export async function get ({ body, query }) {
/**
* POST request
*/
export async function post ({ headers, query, body, params, ...rest }) {
export async function post ({ headers, url, body, params, ...rest }) {
try {
const bodyParsed = JSON.parse(Buffer.from(body).toString())
const { action, cartId, productId } = bodyParsed