Skip to content

Commit

Permalink
fixes #788 - db string comparison when setting query manager
Browse files Browse the repository at this point in the history
  • Loading branch information
wooldridge committed Mar 16, 2018
1 parent 81b61f8 commit 865e663
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public SearchService(HubConfig hubConfig) {
public StringHandle search(SearchQuery searchQuery) {
QueryManager queryMgr;
String dbPrefix;
if (searchQuery.database.equals(DatabaseKind.STAGING)) {
if (searchQuery.database.equalsIgnoreCase(DatabaseKind.getName(DatabaseKind.STAGING))) {
queryMgr = stagingQueryMgr;
dbPrefix = "staging-";
}
Expand Down

0 comments on commit 865e663

Please sign in to comment.