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

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

View file

@ -290,8 +290,8 @@ export class SystemKeywords {
* loop
*
*/
public async find(file: string, ...args ): Promise<any> {
GBLog.info(`BASIC: FIND running on ${file}...`);
public async find(file: string, ...args): Promise<any> {
GBLog.info(`BASIC: FIND running on ${file} and args: ${JSON.stringify(args)}...`);
let [baseUrl, client] = await this.internalGetDriveClient();
const botId = this.min.instance.botId;
const path = `/${botId}.gbai/${botId}.gbdata`;
@ -320,6 +320,9 @@ export class SystemKeywords {
let columnIndex = 0;
const header = results.text[0];
for (; columnIndex < header.length; columnIndex++) {
GBLog.info(`FIND DEBUG header: ${header[columnIndex]} columnName: ${columnName}`);
if (header[columnIndex].toLowerCase() === columnName.toLowerCase()) {
break;
}