File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,15 @@ export class FirestackModule {
50
50
}
51
51
52
52
makeRef ( path ) {
53
- const refName = [ this . _refName , path ] . join ( '/' ) ;
54
- return this . _makeRef ( this . _firestack . database . ref ( refName ) ) ;
53
+ const refName = '/' + [ this . _refName , path ] . join ( '/' ) ;
54
+ const ref = this . _firestack . database . ref ( refName ) ;
55
+ return this . _makeRef ( ref ) ;
56
+ }
57
+
58
+ setFirestack ( firestack ) {
59
+ if ( firestack ) {
60
+ this . _firestack = firestack ;
61
+ }
55
62
}
56
63
57
64
setStore ( store ) {
@@ -156,7 +163,7 @@ export class FirestackModule {
156
163
}
157
164
return error ? reject ( error ) : resolve ( value )
158
165
} ) ;
159
- } ) ;
166
+ } )
160
167
} ) ;
161
168
}
162
169
@@ -198,7 +205,7 @@ export class FirestackModule {
198
205
get actions ( ) {
199
206
return [
200
207
'listen' , 'unlisten' ,
201
- 'get ' , 'set ' , 'update ' , 'remove '
208
+ 'getAt ' , 'setAt ' , 'updateAt ' , 'removeAt '
202
209
] . reduce ( ( sum , name ) => {
203
210
return {
204
211
...sum ,
You can’t perform that action at this time.
0 commit comments