diff --git a/src/app/api/analyze/route.ts b/src/app/api/analyze/route.ts index 4ff829a..037ecfb 100644 --- a/src/app/api/analyze/route.ts +++ b/src/app/api/analyze/route.ts @@ -4,7 +4,7 @@ import { getSessionFromCookie, getUserFromHeaders } from '../../../lib/auth' import { analyzeImageWithVision } from '../../../services/googleVisionCore' import { processAnimalImage } from '../../../services/animalProcessingService' import { checkAndStoreImageHash } from '../../../services/imageHashService' -import { awardPointsForImage } from '../../../services/userPointsService' +import { awardPointsForImage, ensureUserExists } from '../../../services/userPointsService' import { validate as validateUuid } from 'uuid' // Increase body parser size limit