mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 15:08:46 +00:00
Date 관련 Zod 스키마 수정
z.coerce.date()가 아닌 z.string().datetime()을 사용하도록 변경하여, 번거롭더라도 버그를 줄일 수 있는 방향으로 수정하였습니다.
This commit is contained in:
@@ -20,10 +20,10 @@ export const GET: RequestHandler = async ({ cookies, params }) => {
|
||||
await getFileInformation(userId, id);
|
||||
return json(
|
||||
fileInfoResponse.parse({
|
||||
createdAt,
|
||||
createdAt: createdAt.toISOString(),
|
||||
mekVersion,
|
||||
dek: encDek,
|
||||
dekVersion,
|
||||
dekVersion: dekVersion.toISOString(),
|
||||
contentType: contentType,
|
||||
contentIv: encContentIv,
|
||||
name: encName.ciphertext,
|
||||
|
||||
Reference in New Issue
Block a user