fix: undefined history in post request

This commit is contained in:
Methapon2001 2024-03-14 17:32:33 +07:00
parent edc08f7f2e
commit 30d098577f

View file

@ -145,7 +145,6 @@ export class ProfileTrainingController extends Controller {
};
Object.assign(data, { ...body, ...meta });
Object.assign(history, { ...body, ...meta });
await this.trainingRepo.save(data);