Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7eeafd03b3 | ||
|
|
f88480d271 | ||
|
|
9b8cce85bd |
No files matched your search
@@ -249,9 +249,7 @@ class SessionsController {
|
||||
|
||||
return await this.withLock(name, async () => {
|
||||
const config = request.config;
|
||||
if (config) {
|
||||
await this.manager.upsert(name, config);
|
||||
}
|
||||
await this.manager.upsert(name, config);
|
||||
return await this.manager.start(name);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,7 +18,13 @@ export class LocalSessionConfigRepository extends ISessionConfigRepository {
|
||||
|
||||
async exists(sessionName: string): Promise<boolean> {
|
||||
const filepath = this.getFilePath(sessionName);
|
||||
return await fileExists(filepath);
|
||||
const exists = await fileExists(filepath);
|
||||
if (!exists) {
|
||||
// check directory exist for empty config sessions
|
||||
const folder = this.store.getSessionDirectory(sessionName);
|
||||
return await fileExists(folder);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
async get(sessionName: string): Promise<SessionConfig | null> {
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ export function getEngineName(): string {
|
||||
}
|
||||
|
||||
export const VERSION: WAHAEnvironment = {
|
||||
version: '2024.9.3',
|
||||
version: '2024.9.4',
|
||||
engine: getEngineName(),
|
||||
tier: getWAHAVersion(),
|
||||
browser: getBrowserExecutablePath(),
|
||||
|
||||
Reference in new issue
Block a user