fix: complete image service integration

This commit is contained in:
2026-08-08 02:25:20 +00:00
parent 044c916990
commit fd90893cef
6 changed files with 173 additions and 2 deletions
+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: '이미지 저장소가 설정되지 않았습니다.' });
}