I'm facing an issue with subscribing to a document in Firestore using AngularFire. Even after making changes to the document through the Firestore console, I don't see any updates reflected in the pulled data, even after refreshing locally. The DocumentChangeAction.type still remains as "added" even after modifications.
Shouldn't changes made in the console trigger a "modified" action, especially for manual updates?
Thank you.
retrieveUserPosts666 (uid: string, page, lastKey, now:number, nowBefore30:number) {
let plizt = [];
return this.afs.collection<any>("uk", ref => {
let query : firebase.firestore.CollectionReference | firebase.firestore.Query = ref;
query = query.where('uid','==',uid);
query = query.orderBy('postdate','desc');
query = query.startAt(lastKey).limit(page);
return query;
}).snapshotChanges().map(x=> {
x.forEach((post, index) => {
plizt.push({
"key": post.payload.doc.id,
"itm": post.payload.doc.data(),
"city" : this.retrieveBeatifulCityName(post.payload.doc.get('city')),
"cut_en" : post.payload.doc.get('description_en').substring(0,100) + "..."
})
});
return plizt;
})
}