fix: apim path bug and pizza bot

This commit is contained in:
Lars Liden 2019-01-28 13:22:36 -08:00
Родитель 4a9e194bd9
Коммит 9ccd620e7c
3 изменённых файлов: 6 добавлений и 6 удалений

6
package-lock.json сгенерированный
Просмотреть файл

@ -38,9 +38,9 @@
"integrity": "sha512-+vd0ycXJ67e4uzWzydBABGcXTDc3TWzWfUGgDA1BMW4C2RnhrFB7pybnLfrb50suZRagbXW0mhPi2UMeCiOmtw=="
},
"@conversationlearner/sdk": {
"version": "0.315.1",
"resolved": "https://registry.npmjs.org/@conversationlearner/sdk/-/sdk-0.315.1.tgz",
"integrity": "sha512-V4yfK8W7i4XuHC4VBaYVlEz2Lx0f4wFCEEhpqFo2Lp4Njxl3VGMiEEHraqTNdQh/ntsvtX49f08HhCFSNBxlbg==",
"version": "0.315.2",
"resolved": "https://registry.npmjs.org/@conversationlearner/sdk/-/sdk-0.315.2.tgz",
"integrity": "sha512-smCYRrvMX5uADBf6FgAjfaYpCsi7hYHSjUGL5vM2jUcB2EfYNFUOz+eGHoyw2wwZQhWSDokqHME3eGKCNIZ+Vw==",
"requires": {
"@conversationlearner/models": "0.194.0",
"@conversationlearner/ui": "0.338.5",

Просмотреть файл

@ -31,7 +31,7 @@
"author": "Microsoft Conversation Learner Team",
"license": "MIT",
"dependencies": {
"@conversationlearner/sdk": "0.315.1",
"@conversationlearner/sdk": "0.315.2",
"botbuilder": "4.1.7",
"chalk": "2.4.1",
"convict": "^4.0.2",

Просмотреть файл

@ -90,14 +90,14 @@ cl.AddCallback({
name: "OutOfStock",
logic: async (memoryManager: ClientMemoryManager) => {
// Save out of stock item
let outOfStock = memoryManager.Get("OutOfStock", ClientMemoryManager.AS_STRING_LIST)
let outOfStock = memoryManager.Get("OutOfStock", ClientMemoryManager.AS_STRING)
// Clear out of stock
memoryManager.Delete("OutOfStock")
return outOfStock
},
render: async (outofStock: string[], memoryManager: ReadOnlyClientMemoryManager, ...args: string[]) => {
render: async (outofStock: string | null, memoryManager: ReadOnlyClientMemoryManager, ...args: string[]) => {
return `Sorry, we don't have ${outofStock}`
}
})