File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,23 +41,24 @@ export class MIRepository {
4141 return MISchema . parse ( miDb ) ;
4242 }
4343
44- async getMI ( miId : string , supplierId : string ) : Promise < MI > {
45- const result = await this . ddbClient . send (
46- new GetCommand ( {
47- TableName : this . config . miTableName ,
48- Key : {
49- id : miId ,
50- supplierId,
51- } ,
52- } ) ,
53- ) ;
44+ async getMI ( miId : string , supplierId : string ) : Promise < MI > {
45+
46+ const result = await this . ddbClient . send (
47+ new GetCommand ( {
48+ TableName : this . config . miTableName ,
49+ Key : {
50+ id : miId ,
51+ supplierId,
52+ } ,
53+ } ) ,
54+ ) ;
5455
55- if ( ! result . Item ) {
56- throw new Error (
57- `Management Information with id ${ miId } not found for supplier ${ supplierId } ` ,
58- ) ;
59- }
56+ if ( ! result . Item ) {
57+ throw new Error (
58+ `Management Information with id ${ miId } not found for supplier ${ supplierId } ` ,
59+ ) ;
60+ }
6061
61- return MISchema . parse ( result . Item ) ;
62+ return MISchema . parse ( result . Item ) ;
6263 }
6364}
You can’t perform that action at this time.
0 commit comments