fix(auth): allow empty string appPath inside session-creation route
This commit is contained in:
@@ -55,7 +55,7 @@ export async function POST(
|
||||
task: string;
|
||||
};
|
||||
|
||||
if (!appName || !appPath || !task?.trim()) {
|
||||
if (!appName || appPath === undefined || !task?.trim()) {
|
||||
return NextResponse.json({ error: "appName, appPath and task are required" }, { status: 400 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user