loadSessions hotfix
All checks were successful
Setup testing environment and test the code / build (push) Successful in 1m20s
Publish to NPM / build-and-publish (release) Successful in 27s

This commit is contained in:
2026-04-08 19:18:06 +02:00
parent 7d50692ece
commit 1cd629e3c1
2 changed files with 4 additions and 3 deletions

View File

@@ -36,8 +36,9 @@ export class SessionManager {
async loadSessions(): Promise<Session[]> {
const tokens = await this.keyring.getAll()
const sessions: Session[] = []
for (const token of tokens) {
const userData = await this.database.get("sessions", token.split(".")[0])
for (const tokenKey of tokens) {
const token = await this.keyring.get(tokenKey)
const userData = await this.database.get("sessions", tokenKey)
if (userData) {
sessions.push({
token: token,