add dpis controller

This commit is contained in:
Suphonchai Phoonsawat 2024-10-07 14:53:27 +07:00
parent 497decefe4
commit 4852131651
74 changed files with 606 additions and 336 deletions

View file

@ -2537,7 +2537,7 @@ export class ProfileController extends Controller {
// }
}
const record = await this.profileRepo.findOneBy({ id });
const before = structuredClone(record);
const before = structuredClone(record);
if (!record) throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลโปรไฟล์นี้");
@ -5758,7 +5758,7 @@ export class ProfileController extends Controller {
}
await this.profileRepo.save(profile, { data: request });
setLogDataDiff(request, { before, after: profile });
return new HttpSuccess();
}