Merge pull request #257 from bipproduction/amalia/25-september-24
Amalia/25 september 24
This commit is contained in:
@@ -77,6 +77,9 @@ export async function GET(request: Request) {
|
||||
idUser: true
|
||||
}
|
||||
}
|
||||
},
|
||||
orderBy: {
|
||||
createdAt: 'desc'
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -206,7 +206,9 @@ export async function POST(request: Request, context: { params: { id: string } }
|
||||
}
|
||||
|
||||
const { id } = context.params;
|
||||
const { name, dateStart, dateEnd } = (await request.json());
|
||||
const { title, dateStart, dateEnd } = (await request.json());
|
||||
|
||||
|
||||
|
||||
const dataTask = await prisma.projectTask.count({
|
||||
where: {
|
||||
@@ -228,7 +230,7 @@ export async function POST(request: Request, context: { params: { id: string } }
|
||||
id
|
||||
},
|
||||
data: {
|
||||
title: name,
|
||||
title,
|
||||
dateStart: new Date(moment(dateStart).format('YYYY-MM-DD')),
|
||||
dateEnd: new Date(moment(dateEnd).format('YYYY-MM-DD')),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user