get id create

This commit is contained in:
kittapath 2025-01-29 10:15:19 +07:00
parent 871e2e5247
commit 0b8f9b6c23
36 changed files with 42 additions and 46 deletions

View file

@ -111,7 +111,8 @@ export class ProfileChildrenEmployeeController extends Controller {
history.profileChildrenId = data.id;
await this.childrenHistoryRepository.save(history, { data: req });
setLogDataDiff(req, { before, after: history });
return new HttpSuccess();
return new HttpSuccess(data.id);
}
@Patch("{childrenId}")