Skip to content

Commit 7eb3e51

Browse files
diegothamjamesdaniels
authored andcommitted
docs(afs): fixed Firestore collections samples (#1301)
1 parent c282cfe commit 7eb3e51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/firestore/collections.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export class AppComponent {
201201
deposits: Observable<AccountDepositId[]>;
202202
constructor(private readonly afs: AngularFirestore) {
203203
this.depositCollection = afs.collection<AccountDeposit>('deposits');
204-
this.deposits = this.shirtCollection.stateChanges(['added'])
204+
this.deposits = this.depositCollection.stateChanges(['added'])
205205
.map(actions => {
206206
return actions.map(a => {
207207
const data = a.payload.doc.data() as AccountDeposit;
@@ -246,7 +246,7 @@ export class AppComponent {
246246
accountLogs: Observable<AccountLogItemId[]>;
247247
constructor(private readonly afs: AngularFirestore) {
248248
this.accountLogCollection = afs.collection<AccountLogItem>('accountLog');
249-
this.accountLogs = this.shirtCollection.auditTrail()
249+
this.accountLogs = this.accountLogCollection.auditTrail()
250250
.map(actions => {
251251
return actions.map(a => {
252252
const data = a.payload.doc.data() as AccountLogItem;

0 commit comments

Comments
 (0)