Skip to content

Commit

Permalink
refactor: 방송 정보 업데이트 API 변경
Browse files Browse the repository at this point in the history
이미지 확장자 반환 코드 변경
  • Loading branch information
JYKIM317 committed Nov 28, 2024
1 parent b471f33 commit fec3676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applicationServer/src/live/live.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class LiveService {
if (requestBody.thumbnail) {
const [imageHeader, imageString] = requestBody.thumbnail.split(',');
const dataType = imageHeader.split(':')[1];
fileEXT = dataType.match(/^image\/([a-z0-9\-+]+);base64$/)[0];
fileEXT = dataType.match(/^image\/([a-z0-9\-+]+);base64$/)[1];
const imageData = Buffer.from(imageString, 'base64');
uploadData(`${memberLiveData.broadcastPath}/static_thumbnail.${fileEXT}`, imageData);
}
Expand Down

0 comments on commit fec3676

Please sign in to comment.