Skip to content

Commit fe1739e

Browse files
committed
chore: housekeeping
1 parent f47b422 commit fe1739e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.tmuxinator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ windows:
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

apps/web/src/app/api/conversations/[conversationId]/spans/[spanId]/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import {
44
SpanMetadatasRepository,
55
SpansRepository,
66
} from '@latitude-data/core/repositories'
7-
import { notFound } from 'next/navigation'
87
import { NextRequest, NextResponse } from 'next/server'
98
import { Workspace } from '@latitude-data/core/schema/models/types/Workspace'
9+
import { NotFoundError } from '@latitude-data/constants/errors'
1010

1111
export 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

0 commit comments

Comments
 (0)