Skip to content

Commit

Permalink
refs PharmaLedger-IMI#73 - ensure freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
pccosta-pdm committed Apr 18, 2022
1 parent c75ee6d commit 61b0cf1
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
4 changes: 2 additions & 2 deletions fgt-api/managers/SimpleShipmentManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class SimpleShipmentManager extends Manager {
_genCompostKey(simpleShipment) {
let shipmentId;
const splitShipmentId = `${simpleShipment.shipmentId}`.split('-');
if (this.getIdentity().id === simpleShipment.senderId) {
if (this.getIdentity().id === simpleShipment.requesterId) {
if (splitShipmentId.length >= 2)
shipmentId = splitShipmentId[splitShipmentId.length - 1];
else
Expand All @@ -96,7 +96,7 @@ class SimpleShipmentManager extends Manager {
if (splitShipmentId.length >= 2)
shipmentId = simpleShipment.shipmentId;
else
shipmentId = `${simpleShipment.senderId}-${simpleShipment.shipmentId}`;
shipmentId = `${simpleShipment.requesterId}-${simpleShipment.shipmentId}`;
}
return shipmentId;
}
Expand Down
8 changes: 7 additions & 1 deletion fgt-api/swagger/docs/MAH.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1866,13 +1866,19 @@ components:
type:
- string

Order:
type: string
enum:
- dsc
- asc

Query:
type: object
properties:
keyword:
type: string
sort:
type: dsc | asc
$ref: '#/components/schemas/Order'

Meta:
type: object
Expand Down
9 changes: 8 additions & 1 deletion fgt-api/swagger/docs/PHA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1368,13 +1368,20 @@ components:
type:
- string

Order:
type: string
enum:
- dsc
- asc

Query:
type: object
properties:
keyword:
type: string
sort:
type: dsc | asc
$ref: '#/components/schemas/Order'


Meta:
type: object
Expand Down
9 changes: 8 additions & 1 deletion fgt-api/swagger/docs/WHS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -939,13 +939,20 @@ components:
type:
- string

Order:
type: string
enum:
- dsc
- asc

Query:
type: object
properties:
keyword:
type: string
sort:
type: dsc | asc
$ref: '#/components/schemas/Order'


Meta:
type: object
Expand Down
20 changes: 0 additions & 20 deletions fgt-api/swagger/docs/schemas/schemas.yml

This file was deleted.

1 change: 1 addition & 0 deletions octopus-freeze.json
Original file line number Diff line number Diff line change
Expand Up @@ -900,3 +900,4 @@
}



0 comments on commit 61b0cf1

Please sign in to comment.