Skip to content

[0.8] Fix some pruning issues#1537

Merged
alecritson merged 2 commits intolunarphp:0.8from
ryanmitchell:fix/prune-touching-dates
Feb 9, 2024
Merged

[0.8] Fix some pruning issues#1537
alecritson merged 2 commits intolunarphp:0.8from
ryanmitchell:fix/prune-touching-dates

Conversation

@ryanmitchell
Copy link
Contributor

I noticed on our live sites that the approach to pruning merged carts was causing issues as it touched the updated_at date for any merged carts, which then triggered our cart abandonment emails.

This PR updates the prune command to ignore merged carts in the initial query, and then remove any merged carts associated with the current model as part of the deleting process. I think this is a better approach.

@vercel
Copy link

vercel bot commented Feb 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lunar-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 8:54am

@alecritson alecritson merged commit 68398b1 into lunarphp:0.8 Feb 9, 2024
@ryanmitchell ryanmitchell deleted the fix/prune-touching-dates branch February 9, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants