need help pls
# 🤝help
s
14:48:42 error card:Calculation and composition of pension details based on user data. action Error executing action "inline-card:Calculation and composition of pension details based on user data..js" in flow:👂 Capturing Information:node:Standard1 Error executing action "inline-card:Calculation and composition of pension details based on user data..js" in flow:👂 Capturing Information:node:Standard1 [Error, Check dependency list! Synchronous require cannot resolve module 'luxon'. This is the first mention of this module!] {"scope":"bot-action","cardId":"card:Calculation and composition of pension details based on user data.","nodeId":"node:Standard1","workflowId":"flow:👂 Capturing Information"}
this is the code
b
@shy-army-44554 you must go step by step to debug this, I think it has to do with the dates you manage, however comment on the lines and disable them one by one until the bug explodes
If you can share and export the bot I can take a look at it and identify the exact line that causes the problem
The Luxon module is used to work with dates and times in JavaScript.
s
this is the bot
i didnt understand where is the error
@billowy-morning-42410
b
cheking
ok, I solved the problem with the dates, now we have to correct some logic validations in the code. I'll send you back the bot soon
Well first of all, Luxon is already automatically imported into so you don't need to import it back into the execute card. You can now refer to the luxon object anywhere luxon.DateTime for example to access DateTime.
Another thing is that annidilavor is not a number per se, it is an object with two values ​​since you are using TimeMeasurements as input, it is an object with value and message
Copy code
{ value: 36,
message: "extract 36 from input"
}
👆🏻 here you get the number that interests you of that object
Also remember to create a string variable called responseMessage
@shy-army-44554 By the way we can format that answer better haha ​​if you need help to present it better tell me, those calculation formats are very raw 😉
@shy-army-44554 ?
s
hi i also resolve it
thank you very much
for the answer format how i did do?
@billowy-morning-42410
7 Views