Skip to content

Adding a new question, round count not updated #22

@eddiejaoude

Description

@eddiejaoude

5 questions but count is 4.

The reason for this, is because the it is only looking for rounds that are added not modified

return quizDoc
            .collection<Round>('rounds', (ref: firestore.Query) => ref.orderBy('created'))
            .stateChanges([ 'added' ])
            .pipe(
                map((rounds) => rounds
                    .map((round: DocumentChangeAction<Round>) => round.payload.doc.data({ serverTimestamps: 'estimate' })),
                ),
            );

Screenshot 2020-05-24 21 39 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    is: defectUnexpected behaviour which has previously been defined

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions