Firestore Timestamp variable throws TypeError: licence.startDate.toMillis is not a function

前端 未结 0 1716
余生分开走
余生分开走 2021-01-20 21:44

I try to calculate the difference between to Timestamps in a cloud function.

const diff = admin.firestore.Timestamp.now().toMillis() - licence.startDate.toMil         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题