Skip to content

Commit

Permalink
fix: Fix tenant-readmodel-writer onboardedAt value (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
galales authored Sep 24, 2024
1 parent 8eaa021 commit fc62135
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export async function handleMessageV1(
{
$set: {
"data.selfcareId": msg.data.selfcareId,
"data.onboardedAt": new Date().toISOString(),
"metadata.version": msg.version,
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ describe("Integration tests", async () => {
"data.id": mockTenant.id,
});

expect(retrievedTenant?.data).toEqual(
toReadModelTenant({
...updatedTenant,
onboardedAt: new Date(),
})
);
expect(retrievedTenant?.data).toEqual(toReadModelTenant(updatedTenant));
expect(retrievedTenant?.metadata).toEqual({ version: 2 });

vi.useRealTimers();
Expand Down

0 comments on commit fc62135

Please sign in to comment.