Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with firebase-admin 11.5.0 #261

Open
sentd94 opened this issue Apr 1, 2023 · 0 comments
Open

Incompatibility with firebase-admin 11.5.0 #261

sentd94 opened this issue Apr 1, 2023 · 0 comments

Comments

@sentd94
Copy link

sentd94 commented Apr 1, 2023

    GeoFireClient.prototype.point = function (latitude, longitude) {
        return {
            geopoint: new this.app.firestore.GeoPoint(latitude, longitude),
            geohash: encode(latitude, longitude, 9)
        };
    };

this.app.firestore.GeoPoint is not a constructor in the latest version.

This leads to an issue when trying to create a GeoPoint like this (when using the latest firebase-admin version):

const position = geo.point(40, -119);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant