exports.SentNotificationToCarServiceAppUserBasedOnWorkOrPaymentStatusUpdates =
functions.database.ref('/carServiceNoti/{uid}/{pushid}')
.onCreate((snapshot, context) => {
const original = snapshot.val();
try {
if (original=== null ? false : true) {
//here i need to sent push notification
admin.database().ref("/noit/"+context.params.uid+"/"+context.params.pushid).push().set(original);
return 200;
}else{
return 200;
}
}catch(e){
return 200;
}
});
HTTP错误:400,请求有错误
错误:功能未正确部署。