Error: Function returned undefined, expected Promise or value
exports.openStore = functions.pubsub.schedule('0 15 * * *') .timeZone('America/Los_Angeles') .onRun((context) => { admin.database().ref('/ControlPanel').update({open: true}); console.log('Open the Store!'); }); What is the best way to return a promise or value with a scheduled cloud function.