fix: task divisi

Deskripsi:
- perbaiki tgl input untuk fitur divisi task

No Issues
This commit is contained in:
amel
2024-11-11 14:52:49 +08:00
parent 8ec0b5aa5f
commit f26d939421
7 changed files with 17 additions and 21 deletions

View File

@@ -2,7 +2,6 @@ import { prisma } from "@/module/_global";
import { funGetUserByCookies } from "@/module/auth";
import { createLogUser } from "@/module/user";
import _ from "lodash";
import moment from "moment";
import { NextResponse } from "next/server";
@@ -78,8 +77,6 @@ export async function DELETE(request: Request, context: { params: { id: string }
}
}
// EDIT STATUS DETAIL TASK
export async function PUT(request: Request, context: { params: { id: string } }) {
try {
@@ -218,8 +215,8 @@ export async function POST(request: Request, context: { params: { id: string } }
},
data: {
title,
dateStart: new Date(moment(dateStart).format('YYYY-MM-DD')),
dateEnd: new Date(moment(dateEnd).format('YYYY-MM-DD')),
dateStart: new Date(dateStart),
dateEnd: new Date(dateEnd),
},
});