Skip to content

Commit c4d6009

Browse files
committed
more lint fixes
1 parent d3fa12b commit c4d6009

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,20 @@ describe("MiRepository", () => {
9292
}),
9393
);
9494

95-
const fetchedMi = await miRepository.getMI(persistedMi.id, persistedMi.supplierId);
95+
const fetchedMi = await miRepository.getMI(
96+
persistedMi.id,
97+
persistedMi.supplierId,
98+
);
99+
96100
expect(fetchedMi).toEqual(
97101
expect.objectContaining({
98102
id: expect.any(String),
99103
createdAt: "2020-02-01T00:00:00.000Z",
100104
updatedAt: "2020-02-01T00:00:00.000Z",
101105
ttl: 1_580_518_800, // 2020-02-01T00:01:00.000Z, seconds since epoch
102106
...mi,
103-
})
104-
)
107+
}),
108+
);
105109
});
106110
});
107111

internal/datastore/src/mi-repository.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { DynamoDBDocumentClient, PutCommand, GetCommand } from "@aws-sdk/lib-dynamodb";
1+
import {
2+
DynamoDBDocumentClient,
3+
GetCommand,
4+
PutCommand,
5+
} from "@aws-sdk/lib-dynamodb";
26
import { Logger } from "pino";
37
import { randomUUID } from "node:crypto";
48
import { MI, MISchema } from "./types";
@@ -37,10 +41,7 @@ export class MIRepository {
3741
return MISchema.parse(miDb);
3842
}
3943

40-
async getMI(
41-
miId: string,
42-
supplierId: string,
43-
): Promise<MI> {
44+
async getMI(miId: string, supplierId: string): Promise<MI> {
4445

4546
const result = await this.ddbClient.send(
4647
new GetCommand({
@@ -60,5 +61,4 @@ export class MIRepository {
6061

6162
return MISchema.parse(result.Item);
6263
}
63-
6464
}

0 commit comments

Comments
 (0)