Change from deadlines to scheduled

This commit is contained in:
2025-01-23 18:42:32 +01:00
parent fb14bd1cee
commit a6787d50bc
4 changed files with 9 additions and 8 deletions

View File

@@ -11,12 +11,12 @@ app.use(express.static('public'));
// Endpoint to receive task data and append to file
app.post('/add-task', (req, res) => {
const { subject, description, deadline } = req.body;
const { subject, description, scheduled } = req.body;
const orgFormattedData = `
* TODO ${subject}
${description}
SCHEDULED: <${deadline}>
SCHEDULED: <${scheduled}>
`;
const filePath = path.join(__dirname, 'tasks.org');