Skip to content

Commit 5867388

Browse files
ricardohbinsamtstern
authored andcommitted
Fix typo in require of FieldValue (#6)
1 parent a8311ad commit 5867388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firestore/main/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function updateServerTimestamp(db) {
304304
function updateDeleteField(db) {
305305
// [START update_delete_field]
306306
// Get the `FieldValue` object
307-
var FieldValue = require("firebase-admin").FieldValue;
307+
var FieldValue = require("firebase-admin").firestore.FieldValue;
308308

309309
// Create a document reference
310310
var cityRef = db.collection('cities').doc('BJ');

0 commit comments

Comments
 (0)