Skip to content

Commit

Permalink
Check lex models for DRAFT, exclude #351
Browse files Browse the repository at this point in the history
  • Loading branch information
iann0036 committed Dec 13, 2023
1 parent 3584433 commit a9269a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/services/lex.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,10 @@ async function updateDatatableMachineLearningLex() {
botId: bot.botId
}, true).then(async (data) => {
await Promise.all(data.botVersionSummaries.map(async (botversion) => {
if (botversion.botVersion == "DRAFT") {
return Promise.resolve();
}

return sdkcall("LexModelsV2", "describeBotVersion", {
botId: data.botId,
botVersion: botversion.botVersion
Expand Down

0 comments on commit a9269a5

Please sign in to comment.