암호화 마이그레이션 기능 삭제

This commit is contained in:
static committed 2026-03-10 19:33:12 +09:00
1 parent 3c1e98c872
commit c2874035ba
13 files changed
+141 -589

No files matched your search

-20
View File
@@ -118,26 +118,6 @@ const fileRouter = router({
}));
}),
listLegacy: roleProcedure["activeClient"].query(async ({ ctx }) => {
const files = await FileRepo.getLegacyFiles(ctx.session.userId);
return files.map((file) => ({
id: file.id,
isLegacy: true,
parent: file.parentId,
mekVersion: file.mekVersion,
dek: file.encDek,
dekVersion: file.dekVersion,
contentType: file.contentType,
name: file.encName.ciphertext,
nameIv: file.encName.iv,
createdAt: file.encCreatedAt?.ciphertext,
createdAtIv: file.encCreatedAt?.iv,
lastModifiedAt: file.encLastModifiedAt.ciphertext,
lastModifiedAtIv: file.encLastModifiedAt.iv,
isFavorite: file.isFavorite,
}));
}),
rename: roleProcedure["activeClient"]
.input(
z.object({