Changed default to switched on.

This commit is contained in:
Naida Vatric
2020-01-28 22:28:52 +01:00
parent 98263364c7
commit fa46f75dd3
3 changed files with 5 additions and 6 deletions

View File

@@ -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 = {

View File

@@ -4,7 +4,7 @@ module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn("SearchRequests", "includeWithoutPrice", {
type: Sequelize.BOOLEAN,
defaultValue: false
defaultValue: true
});
},

View File

@@ -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>