From 9c79a1104769e9e16d814b535fce4139613bc761 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:07:54 +0700 Subject: [PATCH] fix: wrong database save --- src/controllers/ProfileInsigniaController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/ProfileInsigniaController.ts b/src/controllers/ProfileInsigniaController.ts index b3316fb9..864e26d0 100644 --- a/src/controllers/ProfileInsigniaController.ts +++ b/src/controllers/ProfileInsigniaController.ts @@ -63,7 +63,7 @@ export class ProfileInsigniaController extends Controller { history.profileInsigniaId = result.id; - await this.insigniaHistoryRepo.save(data); + await this.insigniaHistoryRepo.save(history); return new HttpSuccess(); }