เผื่อต้องเช็คค่าว่าง next_holderId
This commit is contained in:
parent
0648eb486b
commit
961677cb19
1 changed files with 5 additions and 3 deletions
|
|
@ -1581,9 +1581,11 @@ export class OrganizationController extends Controller {
|
||||||
where: { orgRevisionId: orgRevisionDraft.id },
|
where: { orgRevisionId: orgRevisionDraft.id },
|
||||||
});
|
});
|
||||||
posMaster.forEach(async (item) => {
|
posMaster.forEach(async (item) => {
|
||||||
item.current_holderId = item.next_holderId;
|
// if(item.next_holderId != null){
|
||||||
item.next_holderId = null;
|
item.current_holderId = item.next_holderId;
|
||||||
await this.posMasterRepository.save(item);
|
item.next_holderId = null;
|
||||||
|
await this.posMasterRepository.save(item);
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
|
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue