sort commandcode

This commit is contained in:
mamoss 2025-03-24 22:43:43 +07:00
parent 6ac682d98c
commit 4a87969337
2 changed files with 5 additions and 3 deletions

View file

@ -2629,7 +2629,7 @@ export class ImportDataController extends Controller {
@Post("update-profileSalary")
async UpdateProfileSalary(@Request() request: { user: Record<string, any> }) {
let rowCount = 0;
const profileSalarys: any = await this.salaryRepo.find();
const profileSalarys: any = await this.salaryRepo.find({ where: { refId: IsNull() } });
for await (const _item of profileSalarys) {
const OFFICER = await this.OFFICERRepo.findOne({