[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

@@ -169,11 +169,12 @@
</PageTransition>
<script context="module" lang="ts">
export async function load ({ page, fetch, session, stuff }) {
/** @type {import('@sveltejs/kit').Load} */
export async function load ({ url, params, fetch, session, stuff }) {
let shopProduct: any
// Get a random product from the API
const productAPI = stuff.posters.find(poster => poster.location.slug === page.params.name)
const productAPI = stuff.posters.find(poster => poster.location.slug === params.name)
// Fetch this product on Swell API
if (productAPI) {

View File

@@ -43,7 +43,8 @@
<script context="module" lang="ts">
import { fetchAPI } from '$utils/api'
export async function load ({ page, fetch, session, stuff }) {
/** @type {import('@sveltejs/kit').Load} */
export async function load ({ url, params, fetch, session, stuff }) {
// Get content from API
const res = await fetchAPI(`
query {

View File

@@ -171,7 +171,8 @@
<script context="module" lang="ts">
import { getRandomElement } from '$utils/functions'
export async function load ({ page, fetch, session, stuff }) {
/** @type {import('@sveltejs/kit').Load} */
export async function load ({ url, params, fetch, session, stuff }) {
let shopProduct: any
// Get a random product from the API