new(all): WebDav support for all bots.

This commit is contained in:
Rodrigo Rodriguez 2024-08-31 04:33:51 -03:00
parent 8e2c747723
commit 3670324d99

View file

@ -78,7 +78,7 @@ export class ImageProcessingServices {
// TODO: const img = await joinImages(paths); // TODO: const img = await joinImages(paths);
const localName = Path.join('work', path, 'cache', `img-mrg${GBAdminService.getRndReadableIdentifier()}.png`); const localName = Path.join('work', path, 'cache', `img-mrg${GBAdminService.getRndReadableIdentifier()}.png`);
const url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName)); const url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName));
img.toFile(localName); // img.toFile(localName);
return { localName: localName, url: url, data: null }; return { localName: localName, url: url, data: null };