Skip to content

Commit a4219c5

Browse files
committed
more lint fixes
1 parent c3d6b3a commit a4219c5

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

internal/datastore/src/mi-repository.ts

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)