update #1373
This commit is contained in:
parent
7490c446da
commit
e631345b11
3 changed files with 11 additions and 0 deletions
|
|
@ -3088,6 +3088,7 @@ export class CommandController extends Controller {
|
|||
|
||||
posMaster.current_holderId = item.profileId;
|
||||
posMaster.conditionReason = _null;
|
||||
posMaster.isCondition = false;
|
||||
if (posMasterOld != null) await this.posMasterRepository.save(posMasterOld);
|
||||
await this.posMasterRepository.save(posMaster);
|
||||
|
||||
|
|
@ -3492,6 +3493,7 @@ export class CommandController extends Controller {
|
|||
}
|
||||
posMaster.current_holderId = profile.id;
|
||||
posMaster.conditionReason = _null;
|
||||
posMaster.isCondition = false;
|
||||
await this.posMasterRepository.save(posMaster);
|
||||
const positionNew = await this.positionRepository.findOne({
|
||||
where: {
|
||||
|
|
@ -5911,6 +5913,7 @@ export class CommandController extends Controller {
|
|||
|
||||
posMaster.current_holderId = profile.id;
|
||||
posMaster.conditionReason = _null;
|
||||
posMaster.isCondition = false;
|
||||
if (posMasterOld != null) await this.posMasterRepository.save(posMasterOld);
|
||||
await this.posMasterRepository.save(posMaster);
|
||||
|
||||
|
|
|
|||
|
|
@ -3520,6 +3520,7 @@ export class PositionController extends Controller {
|
|||
dataMaster.next_holderId = requestBody.profileId;
|
||||
//add on
|
||||
dataMaster.conditionReason = _null;
|
||||
dataMaster.isCondition = false;
|
||||
await this.posMasterRepository.save(dataMaster, { data: request });
|
||||
setLogDataDiff(request, { before, after: dataMaster });
|
||||
|
||||
|
|
@ -4692,6 +4693,7 @@ export class PositionController extends Controller {
|
|||
posMaster.current_holderId = body.profileId;
|
||||
const _null: any = null;
|
||||
posMaster.conditionReason = _null;
|
||||
posMaster.isCondition = false;
|
||||
if (posMasterOld != null) await this.posMasterRepository.save(posMasterOld);
|
||||
await this.posMasterRepository.save(posMaster);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue