fix: Ajusts in sticker message to chatwoot

This commit is contained in:
Davidson Gomes
2023-07-24 20:32:15 -03:00
parent b77f22790b
commit f475391ba6
4 changed files with 141 additions and 136 deletions

View File

@@ -102,7 +102,12 @@ export class RepositoryBroker {
this.logger.verbose('creating store path: ' + storePath);
const tempDir = join(storePath, 'temp');
const chatwootDir = join(storePath, 'chatwoot');
if (!fs.existsSync(chatwootDir)) {
this.logger.verbose('creating chatwoot dir: ' + chatwootDir);
fs.mkdirSync(chatwootDir, { recursive: true });
}
if (!fs.existsSync(tempDir)) {
this.logger.verbose('creating temp dir: ' + tempDir);
fs.mkdirSync(tempDir, { recursive: true });