fix: 조사매물 PDF 다운로드 링크 수정
This commit is contained in:
parent
81d14c3248
commit
b1ae275e17
@ -31,7 +31,7 @@ export async function sendEmail({ from, to, cc, subject, content, attachments, s
|
||||
*/
|
||||
let surveyPdfBuffer: Buffer | null = null
|
||||
if (surveyPdf) {
|
||||
const resp = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/api/survey-sales/${0}?isPdf=true`, {
|
||||
const resp = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/api/survey-sales/${surveyPdf.id}?isPdf=true`, {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
'Content-Type': 'application/pdf',
|
||||
@ -62,6 +62,7 @@ export async function sendEmail({ from, to, cc, subject, content, attachments, s
|
||||
</div>
|
||||
`
|
||||
}
|
||||
console.log('content:: ', content)
|
||||
|
||||
/**
|
||||
* @description SMTP 트랜스포터 생성
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user