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