File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export class RTDBListRemote implements ListRemote {
2424 private apiClient : Client ;
2525
2626 constructor ( private instance : string , private host : string ) {
27- const url = new URL ( ` ${ utils . addSubdomain ( this . host , this . instance ) } ` ) ;
27+ const url = new URL ( utils . getDatabaseUrl ( this . host , this . instance , "/" ) ) ;
2828 this . apiClient = new Client ( { urlPrefix : url . origin , auth : true } ) ;
2929 }
3030
@@ -34,7 +34,7 @@ export class RTDBListRemote implements ListRemote {
3434 startAfter ?: string ,
3535 timeout ?: number
3636 ) : Promise < string [ ] > {
37- const url = new URL ( ` ${ utils . addSubdomain ( this . host , this . instance ) } ${ path } .json` ) ;
37+ const url = new URL ( utils . getDatabaseUrl ( this . host , this . instance , path + " .json" ) ) ;
3838
3939 const params : any = {
4040 shallow : true ,
You can’t perform that action at this time.
0 commit comments