aboutsummaryrefslogtreecommitdiff
path: root/src/server/Job
diff options
context:
space:
mode:
authorJoris2017-03-24 09:21:04 +0000
committerJoris2017-03-24 09:21:04 +0000
commitcfca18262c1ff48dcb683ddab7d03cf8e55573ff (patch)
tree8a438430cee7411259fc395d8f3898488e85d750 /src/server/Job
parent293eb8295162bf0a038f488237db9c9d1316c04d (diff)
Features/categories
Diffstat (limited to 'src/server/Job')
-rw-r--r--src/server/Job/WeeklyReport.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/Job/WeeklyReport.hs b/src/server/Job/WeeklyReport.hs
index 0d1eb35..5cde3e9 100644
--- a/src/server/Job/WeeklyReport.hs
+++ b/src/server/Job/WeeklyReport.hs
@@ -7,7 +7,7 @@ import Data.Time.Clock (UTCTime, getCurrentTime)
import Model.Database (runDb)
import qualified Model.Payment as Payment
import qualified Model.Income as Income
-import Model.User (getUsers)
+import qualified Model.User as User
import SendMail
@@ -25,7 +25,7 @@ weeklyReport conf mbLastExecution = do
(,,) <$>
Payment.modifiedDuring lastExecution now <*>
Income.modifiedDuring lastExecution now <*>
- getUsers
+ User.list
_ <- sendMail (mail conf users payments incomes lastExecution now)
return ()
return now