diff --git a/lib/modules/database/reference.js b/lib/modules/database/reference.js index 92bc4c04..ec4bb8e7 100644 --- a/lib/modules/database/reference.js +++ b/lib/modules/database/reference.js @@ -133,7 +133,7 @@ export default class Reference extends ReferenceBase { .catch((error) => { const firebaseError = this.db._toFirebaseError(error); if (isFunction(failureCallback)) failureCallback(firebaseError); - return Promise.reject(failureCallback); + return Promise.reject(firebaseError); }); }