diff --git a/src/graphql/voice-experiences.ts b/src/graphql/voice-experiences.ts index 3552168..5113d18 100644 --- a/src/graphql/voice-experiences.ts +++ b/src/graphql/voice-experiences.ts @@ -1,7 +1,6 @@ import { enqueueVoiceExperience } from '../hatchet/enqueue-voice-experience.js'; import { prisma } from '../prisma.js'; -const minimumVoiceExperienceSeconds = 30; const forbiddenGeneratedPlaceIdPrefix = 'manual-'; export type CreateVoiceExperienceInput = { @@ -17,9 +16,6 @@ export async function createVoiceExperience( input: CreateVoiceExperienceInput, userId: string, ) { - if (input.durationSeconds < minimumVoiceExperienceSeconds) { - throw new Error('Voice experience must be at least 30 seconds.'); - } const googlePlaceId = input.googlePlaceId.trim(); const googleName = input.googleName.trim(); if (googlePlaceId === '') {