aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payments
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/payments')
-rw-r--r--src/routes/(app)/payments/[...page]/+page.server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/payments/[...page]/+page.server.ts b/src/routes/(app)/payments/[...page]/+page.server.ts
index 311d4435..f1818955 100644
--- a/src/routes/(app)/payments/[...page]/+page.server.ts
+++ b/src/routes/(app)/payments/[...page]/+page.server.ts
@@ -5,7 +5,7 @@ let limit = 25;
export async function load({ cookies, depends, params }) {
depends("app:payments");
- let account_id = cookies.get("account_id");
+ let aid = cookies.get("aid");
let parts = params.page.split("/");
let start, end, page;
@@ -17,7 +17,7 @@ export async function load({ cookies, depends, params }) {
let offset = (page - 1) * limit;
if (!start) start = Date.now() / 1000 - 24 * 60 * 60;
- let url = `/payments?account_id=${account_id}&start=${
+ let url = `/payments?aid=${aid}&start=${
start * 1000
}&limit=${limit}&offset=${offset}`;
if (end) url += `&end=${end * 1000}`;