Is there any way to recover a previous version of a function? Dumb browser reloaded and i did not get to save previous changes

in the weeds here, have a pretty big function that I butchered and saved by mistake and could not recover due to browser reloading, thanks

Would hate to write it all by hand again

Hi Dan,

If the function had previously been saved you can recover the events for it. Depending on when it was last updated you may be able to recover that previous version.

To get a list of all events for a function run:


Using the ts from the version you want to restore run:


Then just copy the body of the query into a new version.