Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sehrish30 committed Jul 23, 2023
1 parent a037d1b commit 46493ee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion headlessBrowserTesting/client/src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const submitBlog = (values, file, history) => async (dispatch) => {
});

// uploading file from client
const newResponse = await axios.put(uploadConfig.data.url, file, {
await axios.put(uploadConfig.data.url, file, {
headers: {
// same file type required for s3
"Content-Type": file.type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class BlogShow extends Component {
if (this.props.blog.imageUrl) {
return (
<img
alt="blog"
src={`https://asdf-images-bank.s3.me-south-1.amazonaws.com/${this.props.blog.imageUrl}`}
/>
);
Expand Down
2 changes: 0 additions & 2 deletions headlessBrowserTesting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ mongoose.connect(keys.mongoURI, {
useUnifiedTopology: true,
});

const app = express();

app.use(bodyParser.json());

// maintaining a session on incoming requests
Expand Down

0 comments on commit 46493ee

Please sign in to comment.