Fix Ping Method for using the default org_id and project_id (#2590)
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 || "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user