fix: use Record<string,any> for task body to allow boolean showDate
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -57,7 +57,7 @@ router.post('/', async (req, res, next) => {
|
|||||||
try {
|
try {
|
||||||
const { title, description, status, priority, quarter, category,
|
const { title, description, status, priority, quarter, category,
|
||||||
section, tag, taskType, progress, issueNote, startDate, dueDate, assigneeId, showDate } =
|
section, tag, taskType, progress, issueNote, startDate, dueDate, assigneeId, showDate } =
|
||||||
req.body as Record<string, string>;
|
req.body as Record<string, any>;
|
||||||
|
|
||||||
if (!title || !quarter) {
|
if (!title || !quarter) {
|
||||||
throw new AppError(400, '제목과 분기는 필수입니다.');
|
throw new AppError(400, '제목과 분기는 필수입니다.');
|
||||||
|
|||||||
Reference in New Issue
Block a user