[chore] Update npm packages and fix errors/run migrations
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user