Skip to content

Commit 8cc0da2

Browse files
committed
fix(tatakforms): donwloaded pdf tatakform on chrome android won't open
1 parent d3cc5ab commit 8cc0da2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/db/models/tatakform/tatakform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class Tatakform {
211211
// Save PDF
212212
const buffer = await pdf.save();
213213
// Log download
214-
Log.i(`💙 [Tatakform] [${slug.toUpperCase()}] – ${student.first_name} ${student.last_name} (${student.student_id})`);
214+
Log.i(`💙 [Tatakform] [DOWNLOAD] [${slug.toUpperCase()}] – ${student.first_name} ${student.last_name} (${student.student_id})`);
215215
// Resolve promise
216216
resolve(new File([buffer], `tatakform_${college.acronym.toLowerCase()}_${studentId}.pdf`, { type: "application/pdf" }));
217217
}

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Log.extend(app);
2323

2424
// Set default headers
2525
app.onBeforeHandle((context: ElysiaContext) => {
26-
setHeader(context, "content-type", "application/json;charset=utf-8");
2726
setHeader(context, "x-powered-by", "Bun + Elysia (UC Main CSP-S Server)");
2827
setHeader(context, "access-control-allow-methods", "GET, POST, PUT, DELETE, OPTIONS");
2928
setHeader(context, "access-control-allow-headers", "Origin, Content-Type, Authorization");

0 commit comments

Comments
 (0)