Example Ad
23456789.00 ₹
- Location: Vill & Post Garkot Malla, Almora, Almora, Uttarakhand
Update the admin workflow so that when an Admin approves a request from the “Request Premium” tab, the system automatically performs the same logic as the “Manage Listings → Mark as Premium” action.
Specifically, upon approval:
Update the premium request status from pending to approved.
Trigger the existing “mark as premium” functionality used in Manage Listings (reuse the same service/function to avoid duplicate logic).
Set the listing’s isPremium (and related premium flags, if any) to true.
Apply any associated side effects such as setting premium duration, updating timestamps, or recalculating sorting priority.
Ensure the update is transactional so both the request status and listing premium state remain consistent. After approval, the listing should immediately reflect Premium/Featured badges across listing-card-list, listing-grid, latestItems, and the item detail page. Maintain proper permission checks so only admins can trigger this action, and prevent re-approving already approved requests.
Contact seller
Share
Related listings
-
FEATURED
₹ 3,45,67,890
Enhance the premium request workflow with full state handling and synchronization between Item Page, Admin → Request Premium, and Admin → Manage Listings. On the Item Page, if a premium request was rejected, the “Feature Listing” button should become active again with the label “Request Again.” C...
Comments