fix: apim path bug and pizza bot
This commit is contained in:
Родитель
4a9e194bd9
Коммит
9ccd620e7c
|
@ -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}`
|
||||
}
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче