mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-02 10:48:36 +00:00
refactor: move project deletion to module
This commit is contained in:
@@ -161,6 +161,11 @@ export const sessionsDb = {
|
||||
.all(projectPath) as SessionRow[];
|
||||
},
|
||||
|
||||
deleteSessionsByProjectPath(projectPath: string): void {
|
||||
const db = getConnection();
|
||||
db.prepare(`DELETE FROM sessions WHERE project_path = ?`).run(projectPath);
|
||||
},
|
||||
|
||||
getSessionName(sessionId: string, provider: string): string | null {
|
||||
const db = getConnection();
|
||||
const row = db
|
||||
|
||||
Reference in New Issue
Block a user