fix: build errors

This commit is contained in:
diced
2026-04-25 19:10:14 -07:00
parent 33104ce1be
commit 5119806147

View File

@@ -12,7 +12,11 @@ export function setPasswordCookie(res: FastifyReply, kind: 'file' | 'url', id: s
}); });
} }
export function getPasswordCookie(cookies: Record<string, string | undefined>, kind: 'file' | 'url', id: string) { export function getPasswordCookie(
cookies: Record<string, string | undefined>,
kind: 'file' | 'url',
id: string,
) {
const cookie = cookies[`${kind}_pw_${id}`]; const cookie = cookies[`${kind}_pw_${id}`];
if (!cookie) return null; if (!cookie) return null;
try { try {