Skip to content

Commit 4bb941f

Browse files
deremerlaurenzlong
authored andcommitted
Normalize path in database InstanceBuilder (#168)
Thanks for the contribution!
1 parent bb51613 commit 4bb941f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/providers/database.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export class InstanceBuilder {
4545
constructor(private instance: string) {}
4646

4747
ref(path: string): RefBuilder {
48-
return new RefBuilder(apps(), `projects/_/instances/${this.instance}/refs/${path}`);
48+
const normalized = normalizePath(path);
49+
return new RefBuilder(apps(), `projects/_/instances/${this.instance}/refs/${normalized}`);
4950
}
5051
}
5152

0 commit comments

Comments
 (0)