Closed L0Lmaker closed 8 months ago
im unable to sign in or register, unsure if it's related to your changes, taking a look.
also, would like to point out that, if a user copied the shared link, then if any updates are made to that trip, the shared link will no longer work.
also, would like to point out that, if a user copied the shared link, then if any updates are made to that trip, the shared link will no longer work.
do we regenerate tripIds when the user changes the trip in any way?
also, would like to point out that, if a user copied the shared link, then if any updates are made to that trip, the shared link will no longer work.
do we regenerate tripIds when the user changes the trip in any way?
it is because in generateAndSaveTrip
when updating, there is a last step that would update the trip with tripToSave.isPublic = false
.
this code in particular, (check the content of tripToSave):
savedTrip = await TripModel.findByIdAndUpdate(savedTrip._id, tripToSave, {
new: true,
session,
})
also, would like to point out that, if a user copied the shared link, then if any updates are made to that trip, the shared link will no longer work.
do we regenerate tripIds when the user changes the trip in any way?
it is because in
generateAndSaveTrip
when updating, there is a last step that would update the trip withtripToSave.isPublic = false
.this code in particular, (check the content of tripToSave):
savedTrip = await TripModel.findByIdAndUpdate(savedTrip._id, tripToSave, { new: true, session, })
maybe it can be described as a feature 👀 . When users want to disable sharing their trips, all they have to do is change something on the trip 😂
also, would like to point out that, if a user copied the shared link, then if any updates are made to that trip, the shared link will no longer work.
do we regenerate tripIds when the user changes the trip in any way?
it is because in
generateAndSaveTrip
when updating, there is a last step that would update the trip withtripToSave.isPublic = false
. this code in particular, (check the content of tripToSave):savedTrip = await TripModel.findByIdAndUpdate(savedTrip._id, tripToSave, { new: true, session, })
maybe it can be described as a feature 👀 . When users want to disable sharing their trips, all they have to do is change something on the trip 😂
yeah, i am okay with either, just pointing it out
Merge main please
Merge main please
I did d6b5791 There's a new commit that was merged between when i put it up and you reviewed Will merge the new commit 👍
User should not be able edit stage
Thanks @vee-16 for the edit button update!
I approve 👍 i will merge EOD, please make any last changes now if you must
Please get meng's approval too, since this change a good amount of BE logic
maybe update the root readme as well?