fix: task divisi
Deskripsi: - perbaiki tgl input untuk fitur divisi task No Issues
This commit is contained in:
@@ -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),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user