Skip to content

Commit f927b90

Browse files
committed
update names to reflect api spec
1 parent bf61547 commit f927b90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/search/dissolved-search/service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ export default class DissolvedSearchService {
1111
}
1212
const ALPHABETICAL_QUERY = "&search_type=alphabetical";
1313
const BEST_MATCH_QUERY = "&search_type=best-match";
14-
const PREVIOUSNAME_QUERY = "&search_type=previous-name-dissolved";
14+
const PREVIOUS_NAME_QUERY = "&search_type=previous-name-dissolved";
1515

1616
let dissolvedSearchURL = "/dissolved-search/companies?q=" + companyName;
1717

1818
if (searchType === "alphabetical") {
1919
dissolvedSearchURL += ALPHABETICAL_QUERY;
2020
}
21-
if (searchType === "previousName") {
22-
dissolvedSearchURL += PREVIOUSNAME_QUERY;
21+
if (searchType === "previousNameDissolved") {
22+
dissolvedSearchURL += PREVIOUS_NAME_QUERY;
2323
}
24-
if (searchType === "best-match") {
24+
if (searchType === "bestMatch") {
2525
dissolvedSearchURL += BEST_MATCH_QUERY;
2626
}
2727

0 commit comments

Comments
 (0)