We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65e1620 commit 2d20a07Copy full SHA for 2d20a07
1 file changed
src/whatsapp/repository/repository.manager.ts
@@ -53,6 +53,7 @@ export class RepositoryBroker {
53
const messageUpDir = join(storePath, 'message-up');
54
const webhookDir = join(storePath, 'webhook');
55
const chatwootDir = join(storePath, 'chatwoot');
56
+ const tempDir = join(storePath, 'temp');
57
58
// Check if directories exist, create them if not
59
if (!fs.existsSync(authDir)) {
@@ -83,6 +84,10 @@ export class RepositoryBroker {
83
84
this.logger.verbose('creating chatwoot dir: ' + chatwootDir);
85
fs.mkdirSync(chatwootDir, { recursive: true });
86
}
87
+ if (!fs.existsSync(tempDir)) {
88
+ this.logger.verbose('creating temp dir: ' + tempDir);
89
+ fs.mkdirSync(tempDir, { recursive: true });
90
+ }
91
} catch (error) {
92
this.logger.error(error);
93
0 commit comments