Change from deadlines to scheduled
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user