fix: complete image service integration

This commit is contained in:
Hide_D committed 2026-08-08 02:25:20 +00:00
1 parent 044c916990
commit fd90893cef
6 files changed
+173 -2

No files matched your search

+1 -1
View File
@@ -222,7 +222,7 @@ export const accountRouter = router({
});
}
const extension = metadata.format === 'jpeg' ? 'jpg' : metadata.format;
const filename = `${randomBytes(8).toString('hex')}.${extension}`;
const filename = `${randomBytes(16).toString('hex')}.${extension}`;
if (!ctx.userIconUpload) {
throw new TRPCError({ code: 'INTERNAL_SERVER_ERROR', message: '이미지 저장소가 설정되지 않았습니다.' });
}