fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit fddb2289d3 - Show all commits

View file

@ -662,9 +662,6 @@ export class SystemKeywords {
const { min, user } = await DialogKeywords.getProcessInfo(pid);
GBLog.info(`BASIC: Saving Blob'${file}' (SAVE file).`);
let { baseUrl, client } = await GBDeployer.internalGetDriveClient(min);
const path = DialogKeywords.getGBAIPath(min.botId, `gbdrive`);
// Checks if it is a GB FILE object.
if (data.data && data.filename) {
@ -697,15 +694,14 @@ export class SystemKeywords {
}
});
if (res._response.status===200 && res.contentMD5 === hash) {
if (res._response.status === 200 && res.contentMD5 === hash) {
const tmpFile = '';
Fs.rmSync(tmpFile);
}
else{
else {
GBLog.error(`BASIC: BLOB HTTP ${res.errorCode} ${res._response.status} .`);
}
} catch (error) {
if (error.code === 'itemNotFound') {
GBLog.info(`BASIC: BASIC source file not found: ${file}.`);