aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/daemons/digest_email_daemon.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/daemons/digest_email_daemon.ex')
-rw-r--r--lib/pleroma/daemons/digest_email_daemon.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/daemons/digest_email_daemon.ex b/lib/pleroma/daemons/digest_email_daemon.ex
index 462ad2c55..b4c8eaad9 100644
--- a/lib/pleroma/daemons/digest_email_daemon.ex
+++ b/lib/pleroma/daemons/digest_email_daemon.ex
@@ -17,7 +17,7 @@ defmodule Pleroma.Daemons.DigestEmailDaemon do
now = NaiveDateTime.truncate(NaiveDateTime.utc_now(), :second)
from(u in inactive_users_query,
- where: fragment(~s(? #> '{"email_notifications","digest"}' @> 'true'), u.info),
+ where: fragment(~s(? ->'digest' @> 'true'), u.email_notifications),
where: u.last_digest_emailed_at < datetime_add(^now, ^negative_interval, "day"),
select: u
)