Skip to content

Commit

Permalink
[feat] 태그 api 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jainefer committed Feb 19, 2024
1 parent a71a2af commit 6d628e3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/services/video.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ export const viewVideo=async(data)=>{
}
export const viewTag=async(data)=>{
const getTagData=await getEntireTag(data);
console.log("태그데이터",getTagData.length);
if(getTagData.length<10){
const getDummyTagData= await getEntireTag({
"userId":41
});
const num=10-getTagData.length
console.log("가져와야하는 데이터 수",num);
console.log("가져온 더미데이터 태그",getDummyTagData);
for(let i=0;i<num;i++){
getTagData.push(getDummyTagData[i]);
}
}

return getEntireTagResponseDTO(getTagData);
}
export const insertSummmary=async(data)=>{
Expand Down

0 comments on commit 6d628e3

Please sign in to comment.