Fix Ping Method for using the default org_id and project_id (#2590)

This commit is contained in:
Saket Aryan
2025-04-28 12:53:52 +05:30
committed by GitHub
parent 1d916c9dd1
commit 6d13e83001
3 changed files with 8 additions and 3 deletions

View File

@@ -207,6 +207,11 @@ mode: "wide"
<Tab title="TypeScript">
<Update label="2025-04-28" description="v2.1.20">
**Improvements:**
- **Client:** Fixed `organizationId` and `projectId` being asssigned to default in `ping` method
</Update>
<Update label="2025-04-22" description="v2.1.19">
**Improvements:**
- **Client:** Added support for `timestamps`

View File

@@ -1,6 +1,6 @@
{
"name": "mem0ai",
"version": "2.1.19",
"version": "2.1.20",
"description": "The Memory Layer For Your AI Apps",
"main": "./dist/index.js",
"module": "./dist/index.mjs",

View File

@@ -193,8 +193,8 @@ export default class MemoryClient {
const { org_id, project_id, user_email } = data;
this.organizationId = org_id || null;
this.projectId = project_id || null;
this.organizationId = this.organizationId || org_id || null;
this.projectId = this.projectId || project_id || null;
this.telemetryId = user_email || "";
}