The deliverEmail/deliverSMS cloud functions are currently unable to work, and they provide this traceback:
[firestore-process-delivery]: Error: Value for argument "data" is not a valid Firestore document. Couldn't serialize object of type "ServerTimestampTransform" (found in field "delivery.startTime"). Firestore doesn't support JavaScript objects with custom prototypes (i.e. objects that were created via the "new" operator).
at validateUserInput (/workspace/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/serializer.js:334:15)
at validateUserInput (/workspace/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/serializer.js:271:13)
at validateUserInput (/workspace/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/serializer.js:271:13)
at validateDocumentData (/workspace/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/write-batch.js:598:40)
at WriteBatch.set (/workspace/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/write-batch.js:259:9)
at Transaction.set (/workspace/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/transaction.js:194:30)
at /workspace/dist/index.js:73:14417
at Transaction.runTransaction (/workspace/node_modules/firebase-admin/node_modules/@google-cloud/firestore/build/src/transaction.js:358:33)
at async /workspace/dist/index.js:73:14147
The
deliverEmail
/deliverSMS
cloud functions are currently unable to work, and they provide this traceback: