From 7893cabf85cb084457a4063ccfd43b64680d2e1d Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sun, 25 Feb 2024 19:49:46 -0300 Subject: [PATCH] fix(basic.gblib): ALLOW ROLE return people. --- .wwebjs_cache/2.2407.3.html | 2 -- packages/basic.gblib/services/DialogKeywords.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 .wwebjs_cache/2.2407.3.html diff --git a/.wwebjs_cache/2.2407.3.html b/.wwebjs_cache/2.2407.3.html deleted file mode 100644 index ada2808f..00000000 --- a/.wwebjs_cache/2.2407.3.html +++ /dev/null @@ -1,2 +0,0 @@ -WhatsApp Web
WhatsApp
 End-to-end encrypted
\ No newline at end of file diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index 1d762f16..3b8317b1 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -1353,7 +1353,7 @@ export class DialogKeywords { const driveUrl = template['@microsoft.graph.downloadUrl']; const res = await fetch(driveUrl); let buf: any = Buffer.from(await res.arrayBuffer()); - let localName1 = Path.join('work', gbaiName, 'cache', `${fileOnly}-${GBAdminService.getRndReadableIdentifier()}.${ext}`); + let localName1 = Path.join('work', gbaiName, 'cache', `${fileOnly.replace(/\s/gi, '')}-${GBAdminService.getNumberIdentifier()}.${ext}`); Fs.writeFileSync(localName1, buf, { encoding: null }); url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName1));