Skip to content

Commit

Permalink
Fix backend default request description
Browse files Browse the repository at this point in the history
  • Loading branch information
Harin329 committed Jun 23, 2023
1 parent 3f52002 commit b0f9314
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/src/controllers/taskController.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,10 @@ export default class TaskController {

updateTaskDescription(req) {
return new Promise((resolve, reject) => {
if (!req.body.description) {
return reject({ error: "Error with request body." });
}
const TaskModel = new Task();
TaskModel.updateDescription(
req.params.taskId,
req.body.description,
req.body.description ?? "",
(err, result) => {
if (err) {
reject({ error: err });
Expand Down

0 comments on commit b0f9314

Please sign in to comment.