Added delete ability.

This commit is contained in:
Naida Vatric
2020-03-19 11:36:23 +01:00
parent ab50eb05af
commit f2d9369d5c
6 changed files with 70 additions and 11 deletions

View File

@@ -350,6 +350,13 @@ const findRealEstatesForSearchRequest = async (searchRequest, maxResults) => {
}
};
}
//Query only for real estated that are not deleted
query.deleted = {
[Op.eq]: false
};
queryIncludeIncomplete.deleted = {
[Op.eq]: false
};
const order = [["updatedAt", "desc"]];