mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +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
|
||||
DnpEntry
|
||||
|> where([dnp], dnp.aasm_state in [ "requested", "claimed", "acknowledged" ])
|
||||
|> where([dnp], dnp.aasm_state in ["requested", "claimed", "acknowledged"])
|
||||
|> Repo.aggregate(:count, :id)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue