From 1720ff332e8750448843b20d744bf69b69db5877 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Sun, 2 Mar 2025 18:39:36 +0800 Subject: [PATCH] fix: undefined reference of userRow --- lib/db/allData.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/db/allData.ts b/lib/db/allData.ts index 3806d37..82e1654 100644 --- a/lib/db/allData.ts +++ b/lib/db/allData.ts @@ -38,7 +38,8 @@ export async function getVideoInfoFromAllData(client: Client, aid: number) { [row.uid], ) const userRow = q.rows[0]; - authorInfo = userRow.desc; + if (userRow) + authorInfo = userRow.desc; } return { title: row.title,