Skip to content

Commit

Permalink
Orv2 1782 tps migration bug fix correcting revision (#996)
Browse files Browse the repository at this point in the history
Co-authored-by: Praveen Raju <[email protected]>
  • Loading branch information
gchauhan-aot and praju-aot authored Dec 28, 2023
1 parent 642f7b8 commit c337bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tps-migration/src/modules/tps-permit/tps-permit.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class TpsPermitService {
await this.permitRepository.update(
{
tpsPermitNumber: tpsPermit.permitNumber,
revision: tpsPermit.revision,
revision: tpsPermit.revision - 1,
},
{
documentId: document.documentId,
Expand Down Expand Up @@ -207,7 +207,7 @@ export class TpsPermitService {
await this.permitRepository.update(
{
tpsPermitNumber: tpsPermit.permitNumber,
revision: tpsPermit.revision,
revision: tpsPermit.revision - 1,
},
{
documentId: document.documentId,
Expand Down

0 comments on commit c337bed

Please sign in to comment.