Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
update(documentRef, data) {
if (documentRef instanceof firebase.firestore.DocumentReference) {
this._writeBatch.update(documentRef, data);
}
if (documentRef instanceof FirebaseFirestore.DocumentReference) {
this._adminWriteBatch.update(documentRef, data);
}
return this;
}
/**