@better-auth/drizzle-adapter 1.7.6 → 1.7.7
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.mjs +1 -1
- package/dist/relations-v2/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -534,7 +534,7 @@ const drizzleAdapter = (db, config) => {
|
|
|
534
534
|
}
|
|
535
535
|
if (!idColumn) return null;
|
|
536
536
|
const targetIds = db.select({ id: idColumn }).from(table).where(...clause).limit(1);
|
|
537
|
-
return (await db.update(table).set(assignments).where(inArray(idColumn, targetIds)).returning())[0] ?? null;
|
|
537
|
+
return (await db.update(table).set(assignments).where(and(...clause, inArray(idColumn, targetIds))).returning())[0] ?? null;
|
|
538
538
|
},
|
|
539
539
|
options: config
|
|
540
540
|
};
|
|
@@ -507,7 +507,7 @@ const drizzleAdapter = (db, config) => {
|
|
|
507
507
|
}
|
|
508
508
|
if (!idColumn) return null;
|
|
509
509
|
const targetIds = db.select({ id: idColumn }).from(table).where(...clause).limit(1);
|
|
510
|
-
return (await db.update(table).set(assignments).where(inArray(idColumn, targetIds)).returning())[0] ?? null;
|
|
510
|
+
return (await db.update(table).set(assignments).where(and(...clause, inArray(idColumn, targetIds))).returning())[0] ?? null;
|
|
511
511
|
},
|
|
512
512
|
async createSchema(props) {
|
|
513
513
|
const { generateDrizzleSchema } = await import("../generate-drizzle-schema-iWvrXnu0.mjs");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/drizzle-adapter",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"bugs": {
|
|
5
5
|
"url": "https://github.com/better-auth/better-auth/issues"
|
|
6
6
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@better-auth/utils": "0.4.2",
|
|
47
47
|
"drizzle-orm": "^0.45.2 || >=1.0.0-rc.1 <2.0.0",
|
|
48
|
-
"@better-auth/core": "^1.7.
|
|
48
|
+
"@better-auth/core": "^1.7.7"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"drizzle-orm": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"drizzle-orm": "^0.45.2",
|
|
58
58
|
"tsdown": "0.21.10",
|
|
59
59
|
"typescript": "^6.0.3",
|
|
60
|
-
"@better-auth/core": "1.7.
|
|
60
|
+
"@better-auth/core": "1.7.7"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsdown",
|