Fix production TypeScript build errors across meetups, media proxy, and join modal.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric
2026-06-08 02:41:03 -05:00
parent 59c9072a35
commit 60dfe538b0
3 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ interface Meetup {
accessLevel: MeetupAccessLevel; accessLevel: MeetupAccessLevel;
meetingProvider: string; meetingProvider: string;
mirotalkRoom: string; mirotalkRoom: string;
loungeChannel: string; loungeChannel?: string;
meetingUrl: string; meetingUrl: string;
replayUrl: string; replayUrl: string;
features: string[]; features: string[];

View File

@@ -59,7 +59,7 @@ async function objectExists(client: ReturnType<typeof getMinioClient>, bucket: s
} }
function passthroughResponse(buffer: Buffer, contentType: string): NextResponse { function passthroughResponse(buffer: Buffer, contentType: string): NextResponse {
return new NextResponse(buffer, { return new NextResponse(new Uint8Array(buffer), {
status: 200, status: 200,
headers: { headers: {
"Content-Type": contentType, "Content-Type": contentType,

View File

@@ -83,10 +83,10 @@ export default function JoinModal({ isOpen, onClose, initialEmail = "", vipOnly
method: "POST", method: "POST",
body: JSON.stringify({ email: em }), body: JSON.stringify({ email: em }),
}); });
if (!data?.ok) { if (!data?.ok || !data.token) {
throw new Error(data?.error || (locale === "zh" ? "操作失败" : "Operation failed")); throw new Error(data?.error || (locale === "zh" ? "操作失败" : "Operation failed"));
} }
await saveAuth(data.token, data.record); await saveAuth(data.token, data.record ?? {});
continueAfterAuth(String(data.user_id)); continueAfterAuth(String(data.user_id));
} catch (err) { } catch (err) {
setError(err instanceof Error ? err.message : "操作失败"); setError(err instanceof Error ? err.message : "操作失败");