mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 10:31:13 -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
|
// Refresh stats to update counts
|
||||||
queue.refreshStats();
|
queue.refreshStats();
|
||||||
|
|
||||||
|
// Invalidate query cache to ensure fresh data on next refresh
|
||||||
|
await queueQuery.invalidate();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
const errorMsg = getErrorMessage(error);
|
const errorMsg = getErrorMessage(error);
|
||||||
console.error("Error moderating content:", errorMsg);
|
console.error("Error moderating content:", errorMsg);
|
||||||
|
|||||||
Reference in New Issue
Block a user