Use Date.now() to keep timestamps simple
This commit is contained in:
parent
ed7aad5712
commit
fdec591af7
|
@ -50,8 +50,7 @@ export const transact = functions.runWith({ minInstances: 1 }).https.onCall(
|
||||||
|
|
||||||
const txn: Txn = {
|
const txn: Txn = {
|
||||||
id: newTxnDoc.id,
|
id: newTxnDoc.id,
|
||||||
// @ts-ignore - this is a firestore doc
|
createdTime: Date.now(),
|
||||||
createdTime: admin.firestore.FieldValue.serverTimestamp(),
|
|
||||||
|
|
||||||
fromId,
|
fromId,
|
||||||
fromName: fromUser.name,
|
fromName: fromUser.name,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user