@agenticmail/core 0.5.45 → 0.5.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1937,7 +1937,7 @@ var AccountManager = class {
|
|
|
1937
1937
|
return row ? rowToAgent(row) : null;
|
|
1938
1938
|
}
|
|
1939
1939
|
async getByName(name) {
|
|
1940
|
-
const stmt = this.db.prepare("SELECT * FROM agents WHERE name = ?");
|
|
1940
|
+
const stmt = this.db.prepare("SELECT * FROM agents WHERE LOWER(name) = LOWER(?)");
|
|
1941
1941
|
const row = stmt.get(name);
|
|
1942
1942
|
return row ? rowToAgent(row) : null;
|
|
1943
1943
|
}
|
package/dist/index.js
CHANGED
|
@@ -1184,7 +1184,7 @@ var AccountManager = class {
|
|
|
1184
1184
|
return row ? rowToAgent(row) : null;
|
|
1185
1185
|
}
|
|
1186
1186
|
async getByName(name) {
|
|
1187
|
-
const stmt = this.db.prepare("SELECT * FROM agents WHERE name = ?");
|
|
1187
|
+
const stmt = this.db.prepare("SELECT * FROM agents WHERE LOWER(name) = LOWER(?)");
|
|
1188
1188
|
const row = stmt.get(name);
|
|
1189
1189
|
return row ? rowToAgent(row) : null;
|
|
1190
1190
|
}
|