The error
[Unhandled promise rejection: Error: Query.startAt: Starting point was already set (by another call to startAt or equalTo).]
I'm trying to query all results from the last 12 hours where type = "receiver"
readLocations = () => {
allLocations = [];
let locations = firebase
.database()
.ref("/locations")
.child(this.currentUser.uid)
.orderByChild("type")
.equalTo("receiver")
.startAt(last12hours);
locations.on("value", snapshot => {
console.log(snapshot);
});
};