diff options
| author | Dhravya <[email protected]> | 2024-06-16 11:58:27 -0500 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-06-16 11:58:27 -0500 |
| commit | 5cb5bcdbda329b6935291113a2034943da9a635a (patch) | |
| tree | 7e42c4f9e570514bae19d11c26dab5dbc6524e6d /apps/web/app/api | |
| parent | Merge branch 'codetorso' of https://github.com/Dhravya/supermemory into codet... (diff) | |
| download | supermemory-5cb5bcdbda329b6935291113a2034943da9a635a.tar.xz supermemory-5cb5bcdbda329b6935291113a2034943da9a635a.zip | |
fixed a bug
Diffstat (limited to 'apps/web/app/api')
| -rw-r--r-- | apps/web/app/api/chat/route.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/app/api/chat/route.ts b/apps/web/app/api/chat/route.ts index 541ced34..c19ce92b 100644 --- a/apps/web/app/api/chat/route.ts +++ b/apps/web/app/api/chat/route.ts @@ -54,7 +54,7 @@ export async function POST(req: NextRequest) { ); const resp = await fetch( - `${process.env.BACKEND_BASE_URL}/api/chat?query=${query}&user=${session.user.email}&sourcesOnly=${sourcesOnly}&spaces=${spaces}`, + `${process.env.BACKEND_BASE_URL}/api/chat?query=${query}&user=${session.user.id}&sourcesOnly=${sourcesOnly}&spaces=${spaces}`, { headers: { Authorization: `Bearer ${process.env.BACKEND_SECURITY_KEY}`, |