mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +01:00
no this isnt rails
This commit is contained in:
parent
00373f44b2
commit
7c6a189dab
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ defmodule Philomena.DnpEntries do
|
||||||
|
|
||||||
def count_dnp_entries() do
|
def count_dnp_entries() do
|
||||||
DnpEntry
|
DnpEntry
|
||||||
|> where([dnp], dnp.aasm_state in [ "requested", "claimed", "acknowledged" ])
|
|> where([dnp], dnp.aasm_state in ["requested", "claimed", "acknowledged"])
|
||||||
|> Repo.aggregate(:count, :id)
|
|> Repo.aggregate(:count, :id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue