Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Emberfire v3 bug in the firestore adapter #613

Copy link
Copy link
@maxymczech

Description

@maxymczech
Issue body actions

In case there are multiple orderBy clauses, startAt, startAfter, endAt and endBefore query methods expect spread of values, not array of values. You should change this:

    if (options.endBefore) {
      ref = ref.endBefore(options.endBefore);
    }

to something this:

    if (options.endBefore) {
      if (Array.isArray(options.endBefore)) {
        ref = ref.endBefore(...options.endBefore);
      } else {
        ref = ref.endBefore(options.endBefore);
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.