mirror of
https://github.com/diced/zipline.git
synced 2026-04-28 10:43:06 -07:00
fix: build errors
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user