mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 08:51:16 -05:00
Fix: Clean up remaining debug logs
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
ParkFormData,
|
||||
RideFormData
|
||||
} from './entitySubmissionHelpers';
|
||||
import { logger } from './logger';
|
||||
|
||||
export type EntitySubmissionHandler<T> = (
|
||||
data: T,
|
||||
@@ -86,7 +87,7 @@ export function validateSubmissionHandler(
|
||||
const expectedPattern = entityType === 'park' ? 'submitPark' : 'submitRide';
|
||||
|
||||
if (!funcString.includes(expectedPattern)) {
|
||||
console.warn(
|
||||
logger.warn(
|
||||
`⚠️ ${entityType}Form: onSubmit should use ${expectedPattern}Creation/${expectedPattern}Update from entitySubmissionHelpers.\n` +
|
||||
`Direct database writes bypass the moderation queue and versioning system.`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user