Firebase function bug

Other users suggest using stored variables. You can also use LocalDB