File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ export const UserService = {
396396 const commissions = await UserRepository . FetchArtistCommissions ( artistId , userId ) ;
397397 const commissionList = await Promise . all (
398398 commissions . map ( async ( c ) => {
399- const images = await CommissionRepository . findImagesByCommissionId ( c . id ) ; // c.id == targetId
399+ const images = await CommissionRepository . findThumbnailImageByCommissionId ( c . id ) ; // c.id == targetId
400400
401401 return {
402402 id : c . id ,
@@ -407,7 +407,7 @@ export const UserService = {
407407 tags : c . commissionTags . map ( t => t . tag . name ) ,
408408 thumbnail : c . thumbnailImage ,
409409 bookmark : c . bookmarks . length > 0 ,
410- commission_img : images . length > 0 ? images [ 0 ] . url : null // 첫 번째 이미지를 대표로
410+ commission_img : images ?. imageUrl ?? null
411411 } ;
412412 } )
413413) ;
You can’t perform that action at this time.
0 commit comments