Failed to configure trigger providers/cloud.firestore/eventTypes/document.update
问题 I plan on updating the news_author_user_type every time an update happens on user_type in users node Here's my code exports.onUpdateUserType = functions.firestore .document('users/{user_id') .onUpdate((change, context) => { const newUserDoc = change.after.data(); const user_type = newUserDoc.user_type; const user_id = context.auth.uid; const db = admin.firestore(); const newsRef = db.collection('news').where('news_author_id', '==', user_id); const news = newsRef.get().then(onSnapshot => {