Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

prevent metadata value from getting cached #494

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

abhinavkgrd
Copy link
Member

Description

so when a property object is assigned to another object, it creates a shallow copy and hence when I edited the
extractedMetadata.creationTime , it also edited the creation time on the NULL_EXTRACTED_METADATA too which was used to initialise it

fixed it by not editing the value, instead of adding a fallback to the initialisation of creationTime in the response object

Test Plan

tested locally by trying to upload multiple files with no EXIF data but having DateTime in the filename so that the issue would get triggered but it didn't occur. All is good

@abhinavkgrd abhinavkgrd requested a review from ua741 April 25, 2022 13:44
@abhinavkgrd abhinavkgrd force-pushed the fix-metadata-value-getting-cached branch from 3a2ca6e to 895a467 Compare April 25, 2022 16:03
@cloudflare-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 895a467
Status: ✅  Deploy successful!
Preview URL: https://cf634c21.bada-frame.pages.dev

View logs

@abhinavkgrd abhinavkgrd merged commit f970ca3 into master Apr 26, 2022
@abhinavkgrd abhinavkgrd deleted the fix-metadata-value-getting-cached branch April 27, 2022 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants