This commit is contained in:
parent
22639e72c6
commit
55085ab8d8
10 changed files with 16 additions and 15 deletions
|
|
@ -40,7 +40,7 @@ export class ProfileTrainingEmployeeTempController extends Controller {
|
|||
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
|
||||
}
|
||||
const record = await this.trainingRepo.find({
|
||||
where: { profileEmployeeId: profile.id },
|
||||
where: { profileEmployeeId: profile.id, isDeleted: false },
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
|
|
@ -51,7 +51,7 @@ export class ProfileTrainingEmployeeTempController extends Controller {
|
|||
let _workflow = await new permission().Workflow(req, profileEmployeeId, "SYS_REGISTRY_TEMP");
|
||||
if (_workflow == false) await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");
|
||||
const record = await this.trainingRepo.find({
|
||||
where: { profileEmployeeId },
|
||||
where: { profileEmployeeId, isDeleted: false },
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(record);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue