Firebase函数已成功执行,但未删除文档。没有错误。该ID以正确的方式传递。
exports.toremove = functions.firestore
.document('school/toremove')
.onUpdate((change, context) => {
const newValue = change.after.data();
const id = newValue.id;
console.log("DELETING THE DOC with id= " + id)
return admin.firestore().collection('notifications').doc(id).delete();
});