aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/invoice
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/invoice')
-rw-r--r--src/routes/(app)/invoice/+page.server.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes/(app)/invoice/+page.server.ts b/src/routes/(app)/invoice/+page.server.ts
index db68740d..64c49ebc 100644
--- a/src/routes/(app)/invoice/+page.server.ts
+++ b/src/routes/(app)/invoice/+page.server.ts
@@ -6,6 +6,7 @@ import { error, redirect } from "@sveltejs/kit";
export const load = async ({ cookies, parent }) => {
const aid = cookies.get("aid");
let { subject, user } = await parent();
+
const rates = await getRates();
if (aid === user.id) redirect(307, `/${user.username}/receive`);