aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/settings/account/+page.server.ts
blob: 33359425b140d0f3cc9da296ec7ec0145fd9a634 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import getRates from "$lib/rates";
import updateUser from "$lib/settings";
import { auth, get } from "$lib/utils";

export async function load({ cookies }) {
  const rates = await getRates();
  const connect = await get("/square/connect", auth(cookies));
  return { connect, rates };
}

export const actions = {
  default: updateUser,
};