Basically title.
I have a schedule for the current date, but when changing to any other date, regardless of week, that schedule continues showing. Anyone had the same issue? Any tips?
edit:
getSchedule() was poorly written.
Should be
return this.db
.list(schedule/${this.uid}, ref => {
return ref
.orderByChild('timestamp')
.startAt(startAt)
.endAt(endAt);
})
.valueChanges();
Angular 7+ , Rxjs 6+
Basically title. I have a schedule for the current date, but when changing to any other date, regardless of week, that schedule continues showing. Anyone had the same issue? Any tips?
edit: getSchedule() was poorly written. Should be return this.db .list(
schedule/${this.uid}
, ref => { return ref .orderByChild('timestamp') .startAt(startAt) .endAt(endAt); }) .valueChanges();