@mesob/auth-hono 0.1.0 → 0.1.1
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.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1067,7 +1067,7 @@ var getRefreshedExpiresAt = ({
|
|
|
1067
1067
|
};
|
|
1068
1068
|
|
|
1069
1069
|
// src/routes/auth/helper/session.ts
|
|
1070
|
-
import { and as and5, asc, eq as eq5, gt as gt2, sql as sql5 } from "drizzle-orm";
|
|
1070
|
+
import { and as and5, asc, eq as eq5, gt as gt2, inArray, sql as sql5 } from "drizzle-orm";
|
|
1071
1071
|
var createSessionRecord = async ({
|
|
1072
1072
|
tx,
|
|
1073
1073
|
tenantId,
|
|
@@ -1160,7 +1160,10 @@ var cleanupOldSessions = async ({
|
|
|
1160
1160
|
and5(
|
|
1161
1161
|
eq5(sessionsInIam.tenantId, tenantId),
|
|
1162
1162
|
eq5(sessionsInIam.userId, userId),
|
|
1163
|
-
|
|
1163
|
+
inArray(
|
|
1164
|
+
sessionsInIam.id,
|
|
1165
|
+
idsToDelete.map((s) => s.id)
|
|
1166
|
+
)
|
|
1164
1167
|
)
|
|
1165
1168
|
);
|
|
1166
1169
|
};
|