Skip to content

Commit

Permalink
fix: duplicate query param
Browse files Browse the repository at this point in the history
  • Loading branch information
kldavis4 committed Mar 24, 2024
1 parent 8588b88 commit 7d8bdf1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,9 @@ export class BuildCommand extends BaseCommand {

let url = `https://${host}/db/${clientId}/reset/${branch}?refreshSchema=true&skipIfSchemaCurrent=true`
if (upstreamBranch && previewBaseBranch && previewName) {
url = `https://${host}/db/${clientId}/reset/${previewBaseBranch}?refreshSchema=true&skipIfSchemaCurrent=true&upstreamBranch=${upstreamBranch}&previewName=${branch}&previewName=${previewName}`
url = `https://${host}/db/${clientId}/reset/${previewBaseBranch}?refreshSchema=true&skipIfSchemaCurrent=true&upstreamBranch=${upstreamBranch}&previewName=${previewName}`
} else if (!upstreamBranch && previewBaseBranch && previewName) {
url = `https://${host}/db/${clientId}/reset/${previewBaseBranch}?refreshSchema=true&skipIfSchemaCurrent=true&previewName=${branch}&previewName=${previewName}`
url = `https://${host}/db/${clientId}/reset/${previewBaseBranch}?refreshSchema=true&skipIfSchemaCurrent=true&previewName=${branch}`
} else if (upstreamBranch && !previewBaseBranch && !previewName) {
url = `https://${host}/db/${clientId}/reset/${branch}?refreshSchema=true&skipIfSchemaCurrent=true&upstreamBranch=${upstreamBranch}`
}
Expand Down

0 comments on commit 7d8bdf1

Please sign in to comment.