fix(user): check reachability by post or email did not account for department
This commit is contained in:
parent
f434eff083
commit
ed147dbd20
@ -146,6 +146,7 @@ retrieveUnreachableUsers :: E.SqlQuery (E.SqlExpr (Entity User))
|
|||||||
retrieveUnreachableUsers = do
|
retrieveUnreachableUsers = do
|
||||||
user <- E.from $ E.table @User
|
user <- E.from $ E.table @User
|
||||||
E.where_ $ E.isNothing (user E.^. UserPostAddress)
|
E.where_ $ E.isNothing (user E.^. UserPostAddress)
|
||||||
|
E.&&. E.isNothing (user E.^. UserCompanyDepartment)
|
||||||
E.&&. E.not_ ((user E.^. UserEmail) `E.like` E.val "%@%.%")
|
E.&&. E.not_ ((user E.^. UserEmail) `E.like` E.val "%@%.%")
|
||||||
return user
|
return user
|
||||||
|
|
||||||
@ -225,4 +226,4 @@ retrieveDriversRWithoutF nowaday = do
|
|||||||
|
|
||||||
{-
|
{-
|
||||||
getAdjustLicences :: SchoolId -> QualificationShortand -> Handler Html
|
getAdjustLicences :: SchoolId -> QualificationShortand -> Handler Html
|
||||||
-}
|
-}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user