Skip to content

Commit 63327c3

Browse files
committed
fix(memory): return 200 with null data when memory key not found on GET
1 parent 68f66ba commit 63327c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/app/api/memory/[id]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const GET = withRouteHandler(async (request: NextRequest, context: Memory
8686
.limit(1)
8787

8888
if (memories.length === 0) {
89-
return memoryEnvelopeError('Memory not found', 404)
89+
return NextResponse.json({ success: true, data: null }, { status: 200 })
9090
}
9191

9292
const mem = memories[0]

0 commit comments

Comments
 (0)