mirror of
https://github.com/Matewoo/pdf-writer.git
synced 2026-11-18 19:02:48 +01:00
minor changes to /generate-pdf api
This commit is contained in:
@@ -224,7 +224,7 @@ function loadWeekData(week) {
|
||||
});
|
||||
}
|
||||
|
||||
function generatePDF() {
|
||||
function generatePDF(type) {
|
||||
const weekNumber = getWeekNumber(currentWeek);
|
||||
const year = currentWeek.getFullYear();
|
||||
const week = `KW${weekNumber}-${year}`;
|
||||
@@ -234,7 +234,7 @@ function generatePDF() {
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({ week })
|
||||
body: JSON.stringify({ week, type })
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
|
||||
Reference in New Issue
Block a user