mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 16:11:12 -05:00
Fix: Invalidate query cache for moderation actions
This commit is contained in:
@@ -378,6 +378,9 @@ export function useModerationQueueManager(config: ModerationQueueManagerConfig):
|
||||
|
||||
// Refresh stats to update counts
|
||||
queue.refreshStats();
|
||||
|
||||
// Invalidate query cache to ensure fresh data on next refresh
|
||||
await queueQuery.invalidate();
|
||||
} catch (error) {
|
||||
const errorMsg = getErrorMessage(error);
|
||||
console.error("Error moderating content:", errorMsg);
|
||||
|
||||
Reference in New Issue
Block a user