Skip to content

Commit c3d6b3a

Browse files
committed
lint fixes
1 parent b55c3df commit c3d6b3a

2 files changed

Lines changed: 15 additions & 17 deletions

File tree

internal/datastore/src/__test__/mi-repository.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,4 @@ describe("MiRepository", () => {
108108
);
109109
});
110110
});
111-
112111
});

internal/datastore/src/mi-repository.ts

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,22 @@ export class MIRepository {
4242
}
4343

4444
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-
);
55-
56-
if (!result.Item) {
57-
throw new Error(
58-
`Management Information with id ${miId} not found for supplier ${supplierId}`,
45+
const result = await this.ddbClient.send(
46+
new GetCommand({
47+
TableName: this.config.miTableName,
48+
Key: {
49+
id: miId,
50+
supplierId,
51+
},
52+
}),
5953
);
60-
}
6154

62-
return MISchema.parse(result.Item);
55+
if (!result.Item) {
56+
throw new Error(
57+
`Management Information with id ${miId} not found for supplier ${supplierId}`,
58+
);
59+
}
60+
61+
return MISchema.parse(result.Item);
6362
}
6463
}

0 commit comments

Comments
 (0)