问题描述
我试图在Firebase中实现功能计划,但此功能返回未定义
函数返回了未定义的预期承诺或值
export const teste = functions.database.ref('teste/{id}/original').onCreate((snapshot,context) => {
const original = snapshot.val();
if(original == '1') {
functions.logger.info('VALOR ',context.params.id,original);
functions.pubsub.schedule('every 1 minutes')
.timeZone('America/Sao_Paulo')
.onRun(() => {
// snapshot.ref.parent?.child('power').set(0);
console.log("PASSANDO POR AQUI");
return null;
});
}
});
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)