File tree Expand file tree Collapse file tree 8 files changed +7
-11
lines changed
workspace/[workspaceId]/home Expand file tree Collapse file tree 8 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ export async function POST(request: NextRequest) {
242242 } catch ( error ) {
243243 if ( error instanceof z . ZodError ) {
244244 return NextResponse . json (
245- { error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
245+ { success : false , error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
246246 { status : 400 }
247247 )
248248 }
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ export async function POST(request: NextRequest) {
167167 } catch ( error ) {
168168 if ( error instanceof z . ZodError ) {
169169 return NextResponse . json (
170- { error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
170+ { success : false , error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
171171 { status : 400 }
172172 )
173173 }
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ export async function POST(request: NextRequest) {
178178 } catch ( error ) {
179179 if ( error instanceof z . ZodError ) {
180180 return NextResponse . json (
181- { error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
181+ { success : false , error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
182182 { status : 400 }
183183 )
184184 }
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export async function POST(request: NextRequest) {
191191 } catch ( error ) {
192192 if ( error instanceof z . ZodError ) {
193193 return NextResponse . json (
194- { error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
194+ { success : false , error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
195195 { status : 400 }
196196 )
197197 }
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ export async function POST(request: NextRequest) {
160160 } catch ( error ) {
161161 if ( error instanceof z . ZodError ) {
162162 return NextResponse . json (
163- { error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
163+ { success : false , error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
164164 { status : 400 }
165165 )
166166 }
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export async function POST(request: NextRequest) {
8686 } catch ( error ) {
8787 if ( error instanceof z . ZodError ) {
8888 return NextResponse . json (
89- { error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
89+ { success : false , error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
9090 { status : 400 }
9191 )
9292 }
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export async function POST(request: NextRequest) {
7979 } catch ( error ) {
8080 if ( error instanceof z . ZodError ) {
8181 return NextResponse . json (
82- { error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
82+ { success : false , error : error . errors [ 0 ] ?. message ?? 'Invalid request' } ,
8383 { status : 400 }
8484 )
8585 }
Original file line number Diff line number Diff line change @@ -273,10 +273,6 @@ export function Home({ chatId }: HomeProps = {}) {
273273 return context . tableId ? { type : 'table' , id : context . tableId } : null
274274 case 'file' :
275275 return context . fileId ? { type : 'file' , id : context . fileId } : null
276- case 'folder' :
277- return context . folderId ? { type : 'folder' , id : context . folderId } : null
278- case 'past_chat' :
279- return context . chatId ? { type : 'task' , id : context . chatId } : null
280276 default :
281277 return null
282278 }
You can’t perform that action at this time.
0 commit comments