Saturday 21 September 2019

Can I store a function in a database?

Im making something that needs to run code at certain times but I also need to be able to cancel it. Im using node-schedule to do it but I'm not able to cancel it if the variable used when making it is not still there. I tried storing the variable in my MongoDB Database but when I try to run the cancel function it says it's not a function. Does anyone know a way that I could fix this problem?

Submitted September 22, 2019 at 05:36AM by MuricaIsHere

No comments:

Post a Comment