fixed docker
This commit is contained in:
@@ -69,19 +69,19 @@ export default function OnboardingPage() {
|
||||
|
||||
try {
|
||||
await createAnalysis({
|
||||
projectId: resolved.projectId,
|
||||
dataSourceId: resolved.sourceId,
|
||||
projectId: resolved.projectId as any,
|
||||
dataSourceId: resolved.sourceId as any,
|
||||
analysis,
|
||||
})
|
||||
|
||||
await updateDataSourceStatus({
|
||||
dataSourceId: resolved.sourceId,
|
||||
dataSourceId: resolved.sourceId as any,
|
||||
analysisStatus: 'completed',
|
||||
lastAnalyzedAt: Date.now(),
|
||||
})
|
||||
} catch (err: any) {
|
||||
await updateDataSourceStatus({
|
||||
dataSourceId: resolved.sourceId,
|
||||
dataSourceId: resolved.sourceId as any,
|
||||
analysisStatus: 'failed',
|
||||
lastError: err?.message || 'Failed to save analysis',
|
||||
lastAnalyzedAt: Date.now(),
|
||||
@@ -106,7 +106,7 @@ export default function OnboardingPage() {
|
||||
})
|
||||
|
||||
await updateDataSourceStatus({
|
||||
dataSourceId: sourceId,
|
||||
dataSourceId: sourceId as any,
|
||||
analysisStatus: 'pending',
|
||||
lastError: undefined,
|
||||
lastAnalyzedAt: undefined,
|
||||
@@ -116,8 +116,8 @@ export default function OnboardingPage() {
|
||||
setPendingProjectId(projectId)
|
||||
|
||||
const jobId = await createAnalysisJob({
|
||||
projectId,
|
||||
dataSourceId: sourceId,
|
||||
projectId: projectId as any,
|
||||
dataSourceId: sourceId as any,
|
||||
})
|
||||
setPendingJobId(jobId)
|
||||
|
||||
@@ -175,7 +175,7 @@ export default function OnboardingPage() {
|
||||
setError(err.message || 'Failed to analyze website')
|
||||
if (pendingSourceId && !manualFallback) {
|
||||
await updateDataSourceStatus({
|
||||
dataSourceId: pendingSourceId,
|
||||
dataSourceId: pendingSourceId as any,
|
||||
analysisStatus: 'failed',
|
||||
lastError: err?.message || 'Failed to analyze',
|
||||
lastAnalyzedAt: Date.now(),
|
||||
@@ -255,8 +255,8 @@ export default function OnboardingPage() {
|
||||
|
||||
if (!resolvedJobId && resolvedProjectId && resolvedSourceId) {
|
||||
resolvedJobId = await createAnalysisJob({
|
||||
projectId: resolvedProjectId,
|
||||
dataSourceId: resolvedSourceId,
|
||||
projectId: resolvedProjectId as any,
|
||||
dataSourceId: resolvedSourceId as any,
|
||||
})
|
||||
setPendingJobId(resolvedJobId)
|
||||
}
|
||||
@@ -307,8 +307,8 @@ export default function OnboardingPage() {
|
||||
analysis: finalAnalysis,
|
||||
sourceUrl: manualSourceUrl,
|
||||
sourceName: finalAnalysis.productName,
|
||||
projectId: resolvedProjectId || undefined,
|
||||
dataSourceId: resolvedSourceId || undefined,
|
||||
projectId: (resolvedProjectId || undefined) as any,
|
||||
dataSourceId: (resolvedSourceId || undefined) as any,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ export default function OnboardingPage() {
|
||||
setError(err.message || 'Failed to analyze')
|
||||
if (pendingSourceId) {
|
||||
await updateDataSourceStatus({
|
||||
dataSourceId: pendingSourceId,
|
||||
dataSourceId: pendingSourceId as any,
|
||||
analysisStatus: 'failed',
|
||||
lastError: err?.message || 'Failed to analyze',
|
||||
lastAnalyzedAt: Date.now(),
|
||||
|
||||
Reference in New Issue
Block a user