Changed default to switched on.
This commit is contained in:
@@ -163,8 +163,8 @@ const findRealEstatesForSearchRequest = async (searchRequest, maxResults) => {
|
||||
[Op.and]: geoSearchQueryPart
|
||||
};
|
||||
|
||||
//Is user checked includeWithoutPrice TRUE then it should return null values of price
|
||||
//If not then only check for price max and min (this is DEFAULT)
|
||||
//Is user unchecked includeWithoutPrice FALSE then it shouldn't return null values of price
|
||||
//If not then null values are accepted (this is DEFAULT)
|
||||
//includeIncpompleteAds does not have effect on price query
|
||||
if (includeWithoutPrice) {
|
||||
query.price = {
|
||||
|
||||
@@ -4,7 +4,7 @@ module.exports = {
|
||||
up: (queryInterface, Sequelize) => {
|
||||
return queryInterface.addColumn("SearchRequests", "includeWithoutPrice", {
|
||||
type: Sequelize.BOOLEAN,
|
||||
defaultValue: false
|
||||
defaultValue: true
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
@@ -22,9 +22,8 @@
|
||||
<p class="distinguished">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" class="filled-in" name="includeWithoutPrice"
|
||||
<% if (includeWithoutPrice) { %>
|
||||
checked
|
||||
<% } %>>
|
||||
checked
|
||||
>
|
||||
<span>Uključi i oglase bez cijene</span>
|
||||
</label>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user