File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
apps/web/src/app/api/conversations/[conversationId]/spans/[spanId] Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44 - apps :
55 layout : main-horizontal
66 panes :
7- - pnpm catchup && pnpm dev --filter='./apps/*'
7+ - pnpm catchup && NODE_OPTIONS=--max_old_space_size=4096 pnpm dev --filter='./apps/*'
88 - docker : docker compose up db redis weaviate mailpit --menu=false
99 - studio : cd packages/core && pnpm db:studio
Original file line number Diff line number Diff line change 44 SpanMetadatasRepository ,
55 SpansRepository ,
66} from '@latitude-data/core/repositories'
7- import { notFound } from 'next/navigation'
87import { NextRequest , NextResponse } from 'next/server'
98import { Workspace } from '@latitude-data/core/schema/models/types/Workspace'
9+ import { NotFoundError } from '@latitude-data/constants/errors'
1010
1111export const GET = errorHandler (
1212 authHandler (
@@ -30,7 +30,7 @@ export const GET = errorHandler(
3030 . getByDocumentLogUuidAndSpanId ( { documentLogUuid, spanId } )
3131 . then ( ( r ) => r . unwrap ( ) )
3232
33- if ( ! span ) return notFound ( )
33+ if ( ! span ) throw new NotFoundError ( `Span with id ${ spanId } not found` )
3434
3535 const metadatasRepository = new SpanMetadatasRepository ( workspace . id )
3636 const metadata = await metadatasRepository
You can’t perform that action at this time.
0 commit comments