clean-xylophone-13519
10/19/2023, 11:25 AMbitter-magazine-8114
10/19/2023, 1:17 PMbitter-magazine-8114
10/19/2023, 1:20 PMbitter-magazine-8114
10/19/2023, 1:27 PM//setting the range (above and below budget) as a bot variable so you don't have to go back in the code and can use it everywhere
cont maxRange = bot.maxRange
filter = { Price: { $lte: user.budget + bot.maxRange } }
const records = await yourTable.findRecords({
filter
})
bitter-magazine-8114
10/19/2023, 1:30 PMsilly-france-49174
10/19/2023, 3:12 PMsilly-france-49174
10/19/2023, 3:13 PMsilly-france-49174
10/19/2023, 3:14 PMclean-xylophone-13519
10/19/2023, 7:38 PMclean-xylophone-13519
10/19/2023, 7:54 PMbitter-magazine-8114
10/19/2023, 8:06 PMbitter-magazine-8114
10/19/2023, 9:02 PMsilly-france-49174
10/20/2023, 2:50 PMbitter-magazine-8114
10/20/2023, 4:51 PM${tier.Packages} | $${tier.Prices}
const subtitleValue = tier.Included
return {
type: 'card',
title: titleValue,
subtitle: subtitleValue,
actions: [
{
action: 'url',
label: 'View Package',
value: tier.Link
}
]
}
})
}
if (records.length !== 0) {
generateCards()
console.log(newCarousel)
workflow.carousel = newCarousel
}
`jolly-policeman-82775
11/03/2023, 9:33 AMrapid-kangaroo-6108
11/13/2023, 6:13 AM