กรอง isDeleted
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s

This commit is contained in:
harid 2026-02-04 16:32:25 +07:00
parent 22639e72c6
commit 55085ab8d8
10 changed files with 16 additions and 15 deletions

View file

@ -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(