lpa rep pdf tweaks
This commit is contained in:
@@ -116,7 +116,7 @@ export default async function handler(req, res) {
|
||||
);
|
||||
console.log(
|
||||
"//////////////////////\nreqBodyobj" +
|
||||
req.body +
|
||||
JSON.stringify(req.body) +
|
||||
"\n//////////////////////\n"
|
||||
);
|
||||
|
||||
@@ -227,16 +227,21 @@ export default async function handler(req, res) {
|
||||
containerID,
|
||||
caseRef,
|
||||
reqBodyobj.repfile_name
|
||||
).then((data) => {
|
||||
console.log(
|
||||
"///////////////////////////////////\nrep pdf file created: " +
|
||||
`${caseRef}/files/${reqBodyobj.repfile_name}.pdf`,
|
||||
"\n/////////////////////////"
|
||||
);
|
||||
return res.status(200).json({
|
||||
status: "success",
|
||||
data: data,
|
||||
path: `${caseRef}/${reqBodyobj.repfile_name}/files/${reqBodyobj.repfile_name}.pdf`,
|
||||
)
|
||||
.then((data) => {
|
||||
console.log(
|
||||
"///////////////////////////////////\nrep pdf file created: " +
|
||||
`${caseRef}/files/${reqBodyobj.repfile_name}.pdf`,
|
||||
"\n/////////////////////////"
|
||||
);
|
||||
return res.status(200).json({
|
||||
status: "success",
|
||||
data: data,
|
||||
path: `${caseRef}/${reqBodyobj.repfile_name}/files/${reqBodyobj.repfile_name}.pdf`,
|
||||
});
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(consoleLogger(err));
|
||||
res.status(400).json(err);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user