diff --git a/ExpressAPI/src/routes/ExerciseRoutes.ts b/ExpressAPI/src/routes/ExerciseRoutes.ts index 022c91698902e30ccad4e4f693d37905834ef84d..eced4af70c7dd166ee55634d08500c2e146ec393 100644 --- a/ExpressAPI/src/routes/ExerciseRoutes.ts +++ b/ExpressAPI/src/routes/ExerciseRoutes.ts @@ -118,7 +118,12 @@ class ExerciseRoutes implements RoutesManager { await db.exercise.update({ where: { id: req.boundParams.exercise!.id }, - data : { deleted: true } + data : { + name : newName, + gitlabLastInfo : repository as unknown as Prisma.JsonObject, + gitlabLastInfoDate: new Date(), + deleted : true + } }); return req.session.sendResponse(res, StatusCodes.OK);