This commit is contained in:
parent
22639e72c6
commit
55085ab8d8
10 changed files with 16 additions and 15 deletions
|
|
@ -43,7 +43,7 @@ export class ProfileDevelopmentEmployeeController extends Controller {
|
|||
throw new HttpError(HttpStatus.BAD_REQUEST, "ไม่พบ profile ดังกล่าว");
|
||||
}
|
||||
const lists = await this.developmentRepository.find({
|
||||
where: { profileEmployeeId: profile.id },
|
||||
where: { profileEmployeeId: profile.id, isDeleted: false },
|
||||
order: { createdAt: "ASC" },
|
||||
});
|
||||
return new HttpSuccess(lists);
|
||||
|
|
@ -65,7 +65,7 @@ export class ProfileDevelopmentEmployeeController extends Controller {
|
|||
|
||||
let query = await AppDataSource.getRepository(ProfileDevelopment)
|
||||
.createQueryBuilder("profileDevelopment")
|
||||
.where({ profileEmployeeId: profileId })
|
||||
.where({ profileEmployeeId: profileId, isDeleted: false })
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.where(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue