@authhero/kysely-adapter 10.98.0 → 10.99.0

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.
@@ -165,7 +165,7 @@ function kr(t) {
165
165
  return async (e, a) => {
166
166
  const [n, r] = await Promise.all([
167
167
  t.selectFrom("users").where("users.tenant_id", "=", e).where("users.user_id", "=", a).selectAll().executeTakeFirst(),
168
- t.selectFrom("users").where("users.tenant_id", "=", e).where("users.linked_to", "=", a).selectAll().execute()
168
+ t.selectFrom("users").where("users.tenant_id", "=", e).where("users.linked_to", "=", a).selectAll().orderBy("created_at", "asc").execute()
169
169
  ]);
170
170
  if (!n)
171
171
  return null;
@@ -266,7 +266,7 @@ function Er(t) {
266
266
  const { ref: N } = t.dynamic;
267
267
  u = u.orderBy(N(s.sort_by), s.sort_order);
268
268
  }
269
- const d = await u.offset(n * r).limit(r).selectAll().execute(), m = d.map((N) => N.user_id), f = m.length ? await t.selectFrom("users").selectAll().where("users.tenant_id", "=", e).where("users.linked_to", "in", m).execute() : [], p = d.map((N) => {
269
+ const d = await u.offset(n * r).limit(r).selectAll().execute(), m = d.map((N) => N.user_id), f = m.length ? await t.selectFrom("users").selectAll().where("users.tenant_id", "=", e).where("users.linked_to", "in", m).orderBy("created_at", "asc").execute() : [], p = d.map((N) => {
270
270
  const T = f.filter(
271
271
  (b) => b.linked_to === N.user_id
272
272
  );
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "10.98.0",
14
+ "version": "10.99.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],