Use Date.now() to keep timestamps simple

This commit is contained in:
Austin Chen 2022-04-21 10:51:52 -07:00
parent ed7aad5712
commit fdec591af7

View File

@ -50,8 +50,7 @@ export const transact = functions.runWith({ minInstances: 1 }).https.onCall(
const txn: Txn = {
id: newTxnDoc.id,
// @ts-ignore - this is a firestore doc
createdTime: admin.firestore.FieldValue.serverTimestamp(),
createdTime: Date.now(),
fromId,
fromName: fromUser.name,