Skip to content

Commit 2d20a07

Browse files
committed
fix: Adjust in create store files
1 parent 65e1620 commit 2d20a07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/whatsapp/repository/repository.manager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export class RepositoryBroker {
5353
const messageUpDir = join(storePath, 'message-up');
5454
const webhookDir = join(storePath, 'webhook');
5555
const chatwootDir = join(storePath, 'chatwoot');
56+
const tempDir = join(storePath, 'temp');
5657

5758
// Check if directories exist, create them if not
5859
if (!fs.existsSync(authDir)) {
@@ -83,6 +84,10 @@ export class RepositoryBroker {
8384
this.logger.verbose('creating chatwoot dir: ' + chatwootDir);
8485
fs.mkdirSync(chatwootDir, { recursive: true });
8586
}
87+
if (!fs.existsSync(tempDir)) {
88+
this.logger.verbose('creating temp dir: ' + tempDir);
89+
fs.mkdirSync(tempDir, { recursive: true });
90+
}
8691
} catch (error) {
8792
this.logger.error(error);
8893
}

0 commit comments

Comments
 (0)