Commit 50297f52 authored by Ermolaev Timur's avatar Ermolaev Timur

#30 Реализовал редактирование задачки

parent a601c1e6
...@@ -97,7 +97,7 @@ router.put('/',async(req:Request, res:Response)=> { ...@@ -97,7 +97,7 @@ router.put('/',async(req:Request, res:Response)=> {
.getOne() .getOne()
if (!user) return res.status(404).send({Message:'user not found'}) if (!user) return res.status(404).send({Message:'user not found'})
const {id,title,description,project,executors,dateTimeDue,dateTimeStart,accomplish,priority} = req.body; const {id,title,description,project,dateTimeDue,dateTimeStart,accomplish,priority} = req.body;
await dataSource await dataSource
.createQueryBuilder() .createQueryBuilder()
.update(Task) .update(Task)
...@@ -105,7 +105,6 @@ router.put('/',async(req:Request, res:Response)=> { ...@@ -105,7 +105,6 @@ router.put('/',async(req:Request, res:Response)=> {
title: title, title: title,
description: description, description: description,
project: project, project: project,
executors: executors,
dateTimeDue: dateTimeDue, dateTimeDue: dateTimeDue,
dateTimeStart: dateTimeStart, dateTimeStart: dateTimeStart,
author:user, author:user,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment