diff options
| author | Adam Soltys <[email protected]> | 2024-10-10 23:22:34 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-10 23:22:34 -0700 |
| commit | f47f4ee4afc4e1cc33018d937080c31ee583e40d (patch) | |
| tree | fae02e350960f1a57511240a8949fa8b0d5bfb14 /src/routes/(app)/invoice/+page.server.ts | |
| parent | 2812e33b27b12d72b353db7fe4408dcf96f71c4a (diff) | |
| download | coinos-ui-f47f4ee4afc4e1cc33018d937080c31ee583e40d.tar.gz coinos-ui-f47f4ee4afc4e1cc33018d937080c31ee583e40d.zip | |
lightning address default
Diffstat (limited to 'src/routes/(app)/invoice/+page.server.ts')
| -rw-r--r-- | src/routes/(app)/invoice/+page.server.ts | 1 |
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 b8a2fe06..fa644eb9 100644 --- a/src/routes/(app)/invoice/+page.server.ts +++ b/src/routes/(app)/invoice/+page.server.ts @@ -5,6 +5,7 @@ import type { Invoice } from "$lib/types"; export let load = async ({ cookies, parent }) => { let aid = cookies.get("aid"); let { subject, user, rates } = await parent(); + if (aid === user.id) redirect(307, `/${user.username}/receive`) let invoice: Invoice = { aid, |
