Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
davidLeonardi authored Jul 24, 2017
1 parent 049228f commit 25e8304
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,15 @@ export default function firebaseDenormalizer(firebase) {
pathObject[filterableKey] != filterableValue) {
return Promise.all([
firebase.ref(getPathString(joinCollectionName, pathObject[filterableKey], pathRef.key))
.remove()
.remove(),
firebase.ref(getPathString(joinCollectionName, filterableValue, pathRef.key))
.set(true);
]);
} else {
return firebase.ref(getPathString(joinCollectionName, filterableValue, pathRef.key))
.set(true);
}
});
await firebase.ref(getPathString(joinCollectionName, filterableValue, pathRef.key))
.set(true);
return payload;
}

Expand Down

0 comments on commit 25e8304

Please sign in to comment.