@authhero/drizzle 0.53.8 → 0.53.9

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.
@@ -16149,9 +16149,8 @@ function nb(e) {
16149
16149
  return await e.insert(Vt).values(r), tb(r);
16150
16150
  },
16151
16151
  async get(t, n, r) {
16152
- if (!t) throw Error("tenant_id is required");
16153
- let i = await e.select().from(Vt).where(h(m(Vt.tenant_id, t), m(Vt.code_id, n), m(Vt.code_type, r))).get();
16154
- return i ? tb(i) : null;
16152
+ let i = t ? h(m(Vt.tenant_id, t), m(Vt.code_id, n), m(Vt.code_type, r)) : h(m(Vt.code_id, n), m(Vt.code_type, r)), a = await e.select().from(Vt).where(i).get();
16153
+ return a ? tb(a) : null;
16155
16154
  },
16156
16155
  async list(t, n) {
16157
16156
  let { page: r = 0, per_page: i = 50, include_totals: a = !1, sort: o } = n || {}, s = e.select().from(Vt).where(m(Vt.tenant_id, t)).$dynamic();
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.53.8",
14
+ "version": "0.53.9",
15
15
  "files": [
16
16
  "dist",
17
17
  "src/schema",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "drizzle-orm": "^0.44.2",
36
36
  "nanoid": "^5.1.11",
37
- "@authhero/proxy": "0.7.1",
38
- "@authhero/adapter-interfaces": "3.1.1"
37
+ "@authhero/adapter-interfaces": "3.1.1",
38
+ "@authhero/proxy": "0.7.1"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@hono/zod-openapi": "^1.4.0",