Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Data are created but not with the correct path on firebase #7

Closed
Mcdostone opened this issue Jul 14, 2017 · 3 comments
Closed

Data are created but not with the correct path on firebase #7

Mcdostone opened this issue Jul 14, 2017 · 3 comments
Assignees
Labels

Comments

@Mcdostone
Copy link

Hi guys !

First of all, thanks for your library :) I have a issue when I want to insert data in firebase ! Data are inserted but not in the correct path on firebase !

This is my route when I want to create an event for example:
http://localhost:3000/admin/events/create

sans titre

I would to like that data are inserted into /events, but here data are saved in /admin/events.
This is normal because your library uses the basepath which corresponds to the location path:
restClient.js#L142

Maybe, it could be better to to get the firebase reference on the resource, not on the basepath, like you do

Thanks in advance !

@sidferreira
Copy link
Owner

Indeed!!! Fixing!

@Mcdostone
Copy link
Author

Cool 👍 You have probably the same fix to apply for UPDATE and DELETE !

Thanks for you reactivity !

@sidferreira
Copy link
Owner

@Mcdostone I wasn't expecting people use this fast TBH.
Just published 0.0.8.

@sidferreira sidferreira self-assigned this Jul 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants