Filter data by geolocation now sets hasLocation boolean instead of excluding results

This commit is contained in:
Nedim Uka
2019-07-10 15:21:46 +02:00
parent 5829de64e0
commit 33f9e37d93
5 changed files with 64 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ const allRERequestByUiid = async (requestArray) => {
}
/**
* Find all , or all depending on notified bolean marketalerts, and order them by email
* Find all , or all depending on notified bolean marketalerts, that the hasLocation is true, and order them by email
*
* @param fechAll bolean
* @param notified bolean
@@ -43,7 +43,8 @@ const allMarketAlerts = async (fetchAll, notified) => {
if (!fetchAll){
queryObject.where = {
notified: notified
notified: notified,
hasLocation: true
}
}