Browse Source

update image location

fix-broken-scrape
Jørgen Lien Sellæg 6 years ago
parent
commit
47e234b0f2
  1. 4
      src/scrape.js

4
src/scrape.js

@ -92,8 +92,8 @@ const save_images = async ({ image = null, event_id }) => {
if (image === null) {
return [];
}
const original_path = `./events/img/${event_id}.jpg`;
const resized_path = `./events/img/${event_id}-square.jpg`;
const original_path = `./img/${event_id}.jpg`;
const resized_path = `./img/${event_id}-square.jpg`;
const original = write_image(original_path, image);
const resized_square = write_resized(resized_path, image);
try {

Loading…
Cancel
Save