Google cloud firestore 云函数中未定义秒数?

Google cloud firestore 云函数中未定义秒数?,google-cloud-firestore,google-cloud-functions,Google Cloud Firestore,Google Cloud Functions,在过去的几天里,我的云功能运行得非常完美——每一分钟,firestore都会被查询到旧帖子,然后被删除,就像这样: exports.hourly\u job=functions.pubsub.topic('hourly-tick').onPublish((更改,上下文)=>{ const currentTime=Date.now() const getPostsForDate=admin.firestore().collection('posts')。其中('timeOfDeletion','基

在过去的几天里,我的云功能运行得非常完美——每一分钟,firestore都会被查询到旧帖子,然后被删除,就像这样:

exports.hourly\u job=functions.pubsub.topic('hourly-tick').onPublish((更改,上下文)=>{
const currentTime=Date.now()

const getPostsForDate=admin.firestore().collection('posts')。其中('timeOfDeletion','基本上,如果没有要更新的内容,我就不必返回批更新。这解决了问题。

很好,分享了相关的问题。