Skip to content

Commit

Permalink
Merge pull request #3193 from firebase/fz/rm-fix
Browse files Browse the repository at this point in the history
Address database:remove bug that adds namespace twice
  • Loading branch information
fredzqm authored Mar 6, 2021
2 parents 14b2214 + 0f6a466 commit c5d8555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/listRemote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class RTDBListRemote implements ListRemote {
private apiClient: Client;

constructor(private instance: string, private host: string) {
const url = new URL(`${utils.addSubdomain(this.host, this.instance)}`);
const url = new URL(utils.getDatabaseUrl(this.host, this.instance, "/"));
this.apiClient = new Client({ urlPrefix: url.origin, auth: true });
}

Expand All @@ -34,7 +34,7 @@ export class RTDBListRemote implements ListRemote {
startAfter?: string,
timeout?: number
): Promise<string[]> {
const url = new URL(`${utils.addSubdomain(this.host, this.instance)}${path}.json`);
const url = new URL(utils.getDatabaseUrl(this.host, this.instance, path + ".json"));

const params: any = {
shallow: true,
Expand Down

0 comments on commit c5d8555

Please sign in to comment.