0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
matthewp 2022-03-29 13:18:35 +00:00 committed by GitHub Actions
parent 7fd49f1887
commit 3575a10634

View file

@ -60,7 +60,7 @@ export async function getCart(incomingReq: Request): Promise<Cart> {
}); });
} }
export async function addToUserCart( id: number | string, name: string): Promise<void> { export async function addToUserCart(id: number | string, name: string): Promise<void> {
await fetch(`${location.origin}/api/cart`, { await fetch(`${location.origin}/api/cart`, {
credentials: 'same-origin', credentials: 'same-origin',
method: 'POST', method: 'POST',