KB FAQ click working now.
This commit is contained in:
parent
ea39f80707
commit
c31671f3b4
3 changed files with 4 additions and 5 deletions
|
@ -82,7 +82,7 @@ export class AdminDialog extends IGBDialog {
|
||||||
)
|
)
|
||||||
dc.context.sendActivity("Rebuilding index...")
|
dc.context.sendActivity("Rebuilding index...")
|
||||||
await search.deleteIndex()
|
await search.deleteIndex()
|
||||||
let kbService = new KBService()
|
let kbService = new KBService(min.core.sequelize)
|
||||||
await search.createIndex(kbService.getSearchSchema(min.instance.searchIndex), "gb")
|
await search.createIndex(kbService.getSearchSchema(min.instance.searchIndex), "gb")
|
||||||
await dc.context.sendActivity("Index rebuilt.")
|
await dc.context.sendActivity("Index rebuilt.")
|
||||||
}
|
}
|
||||||
|
|
|
@ -275,7 +275,7 @@ export class GBDeployer {
|
||||||
|
|
||||||
// PACKAGE: Put in package logic.
|
// PACKAGE: Put in package logic.
|
||||||
case ".gbkb":
|
case ".gbkb":
|
||||||
let service = new KBService();
|
let service = new KBService(this.core.sequelize);
|
||||||
return service.deployKb(this.core, this, localPath);
|
return service.deployKb(this.core, this, localPath);
|
||||||
|
|
||||||
case ".gbui":
|
case ".gbui":
|
||||||
|
@ -311,7 +311,7 @@ export class GBDeployer {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ".gbkb":
|
case ".gbkb":
|
||||||
let service = new KBService();
|
let service = new KBService(this.core.sequelize);
|
||||||
return service.undeployKbFromStorage(instance, p.packageId);
|
return service.undeployKbFromStorage(instance, p.packageId);
|
||||||
|
|
||||||
case ".gbui":
|
case ".gbui":
|
||||||
|
|
|
@ -443,7 +443,6 @@ export class KBService {
|
||||||
|
|
||||||
return Promise.resolve(null)
|
return Promise.resolve(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -462,7 +461,7 @@ export class KBService {
|
||||||
"A resposta está na tela...",
|
"A resposta está na tela...",
|
||||||
"Veja a resposta na tela..."
|
"Veja a resposta na tela..."
|
||||||
]
|
]
|
||||||
|
|
||||||
await dc.context.sendActivity(messages[0]) // TODO: Handle rnd.
|
await dc.context.sendActivity(messages[0]) // TODO: Handle rnd.
|
||||||
var html = answer.content
|
var html = answer.content
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue