Skip to content

Commit

Permalink
Update firebase.js
Browse files Browse the repository at this point in the history
  • Loading branch information
magancete authored Jun 19, 2022
1 parent 9734f1b commit 235d2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ exports.setDocumentInFirestoreCollection = function (documentId, document, colle
exec(success, error, "FirebasePlugin", "setDocumentInFirestoreCollection", [documentId.toString(), document, collection, timestamp || false]);
};

exports.updateDocumentInFirestoreCollection = function (documentId, document, timestamp, collection, success, error) {
exports.updateDocumentInFirestoreCollection = function (documentId, document, collection, timestamp, success, error) {
if(typeof documentId !== 'string' && typeof documentId !== 'number') return error("'documentId' must be a string or number specifying the Firestore document identifier");
if(typeof collection !== 'string') return error("'collection' must be a string specifying the Firestore collection name");
if(typeof document !== 'object' || typeof document.length === 'number') return error("'document' must be an object specifying record data");
Expand Down

0 comments on commit 235d2be

Please sign in to comment.