Skip to content

Commit

Permalink
chore: Add logs to debug CI 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mateopresacastro committed Nov 7, 2024
1 parent 52128e1 commit 50cfdee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/aws/aws.mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("AWS S3 integration tests with LocalStack", () => {
key: "test-key",
});

console.log({ data });
console.log("getObject", { data });
expect(data).toBeDefined();
});
});
Expand Down
4 changes: 2 additions & 2 deletions lib/aws/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ export async function getObject({
})
);

if (!data.Body) {
if (!data) {
throw new Error("No data in the response");
}

return data.Body;
return data;
} catch (error) {
console.error("Error getting object:", error);
return null;
Expand Down

0 comments on commit 50cfdee

Please sign in to comment.