fix: wrong url instantiation

Signed-off-by: Matthew Bednarski <bednarski@walter-group.com>
This commit is contained in:
Matthew Bednarski
2024-09-16 18:06:35 +02:00
committed by Matthew Bednarski
parent 66a6b4579c
commit f543632988
@@ -238,7 +238,7 @@ const getDefaultBranch = async (opts: {
return defaultBranch;
};
const parseProtocol = (apiBaseUrl: string) => {
const url = new Url(apiBaseUrl);
const url = new URL(apiBaseUrl);
return url.protocol || 'https';
};
/**