Skip to content

Commit

Permalink
Keep the updated_at timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmeyers committed Jul 28, 2023
1 parent 42fda43 commit 82330bd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/SavedImagesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,7 @@ export const SavedImagesPage: FC<Props> = ({
try {
for (const imageId of imagesToDownload) {
const image = await dropboxHelper.downloadImage(imageId);
await localImages.saveImage({
...image,
updated_at: moment().valueOf(),
});
await localImages.saveImage(image);
progress++;
setProgress(progress / imagesToDownload.length);
}
Expand All @@ -271,6 +268,7 @@ export const SavedImagesPage: FC<Props> = ({
console.error(e);
} finally {
setImportingImages(false);
window.location.reload();
}
}
};
Expand Down

0 comments on commit 82330bd

Please sign in to comment.