mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 19:51:13 -05:00
Refactor: Use consolidated escalateSubmission action
This commit is contained in:
@@ -372,7 +372,10 @@ export const useModerationQueue = (config?: UseModerationQueueConfig) => {
|
||||
return Math.max(0, currentLock.expiresAt.getTime() - Date.now());
|
||||
}, [currentLock]);
|
||||
|
||||
// Escalate submission
|
||||
/**
|
||||
* @deprecated Use escalateSubmission from useModerationActions instead
|
||||
* This method only updates the database and doesn't send email notifications
|
||||
*/
|
||||
const escalateSubmission = useCallback(async (submissionId: string, reason: string): Promise<boolean> => {
|
||||
if (!user?.id) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user