Scheduled function data is no longer compatible makeFunctionReference
I think this happened with 1.13 but haven't gone to any effort to dig into it as its not exactly a big deal.
I'm not sure how i could have caused this either, i had to go fix a previously working bit of code i wrote a couple weeks ago.
const query = scheduledFunction.name
i had to change to
const query = scheduledFunction.name.replace('.js', '')
otherwise i get:
I think the function should accept whatever is saved to the db. But I'd almost argue that the name output from _scheduled_functions shouldn't have a extension as its possibly incoherent because of ts/js. I haven't quite started storing these things in the db myself.
2 Replies