From f4d0eade60368c42527085c957b55b07a0158c69 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Wed, 2 Apr 2025 16:17:30 +0800 Subject: [PATCH] fix: serp index --- src/api/serp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/serp.ts b/src/api/serp.ts index 37106c1..37d02f6 100644 --- a/src/api/serp.ts +++ b/src/api/serp.ts @@ -149,7 +149,7 @@ export class SerpHost extends RPCHost { const uid = await auth.solveUID(); if (!q) { if (ctx.path === '/') { - const indexObject = this.getIndex(ctx, auth); + const indexObject = await this.getIndex(ctx, auth); if (!ctx.accepts('text/plain') && (ctx.accepts('text/json') || ctx.accepts('application/json'))) { return indexObject; }