feature: events polling
This commit is contained in:
parent
61a51017a3
commit
b700251278
19 changed files with 353 additions and 77 deletions
|
@ -134,11 +134,11 @@ export async function DELETE(_req: Request, meta: Record<string, any>): Promise<
|
|||
await PASSWORD_ENTRIES.delete(password_entry);
|
||||
}
|
||||
|
||||
const sessions = await SESSIONS.find({
|
||||
const session_entries = await SESSIONS.find({
|
||||
user_id
|
||||
});
|
||||
for (const session of sessions) {
|
||||
await SESSIONS.delete(session);
|
||||
for (const entry of session_entries) {
|
||||
await SESSIONS.delete(entry.load());
|
||||
}
|
||||
|
||||
await USERS.delete(user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue