You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a giveaway is already entered, the URL is saved in the DB. However, the url format of a giveaway that has already been won is different:
When the url is saved it contains the string /ga/won/.
When searching the db, it is searched with /ga/p/ and it isn't found.
The winning url is saved again in the db.
An error is returned because the url is not unique.
The text was updated successfully, but these errors were encountered:
Here's my thought: We always get the giveaway url to do the is skippable test. What if we store that as currentGiveawayUrl in the giveaways.js file, and we use it everywhere? Then it will always be saving the /ga/p/ version of the url even if you win? See my changes here:
When a giveaway is already entered, the URL is saved in the DB. However, the url format of a giveaway that has already been won is different:
When the url is saved it contains the string
/ga/won/
.When searching the db, it is searched with
/ga/p/
and it isn't found.The winning url is saved again in the db.
An error is returned because the url is not unique.
The text was updated successfully, but these errors were encountered: