Filter data by geolocation now sets hasLocation boolean instead of excluding results
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user