From 30d098577fb69cedccdbdaee9e4679a9ec5ac28a Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:32:33 +0700 Subject: [PATCH] fix: undefined history in post request --- src/controllers/ProfileTrainingController.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/controllers/ProfileTrainingController.ts b/src/controllers/ProfileTrainingController.ts index 8b9a5f83..68857e2f 100644 --- a/src/controllers/ProfileTrainingController.ts +++ b/src/controllers/ProfileTrainingController.ts @@ -145,7 +145,6 @@ export class ProfileTrainingController extends Controller { }; Object.assign(data, { ...body, ...meta }); - Object.assign(history, { ...body, ...meta }); await this.trainingRepo.save(data);