Skip to content

Commit

Permalink
remove limit
Browse files Browse the repository at this point in the history
  • Loading branch information
sushant12 committed Oct 6, 2024
1 parent 91da92b commit 89b66bb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/handin/assignments.ex
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,6 @@ defmodule Handin.Assignments do
|> where([as], as.assignment_id == ^assignment_id)
|> where([as], as.user_id == ^user_id)
|> order_by([as], desc: as.inserted_at)
|> limit(1)
|> join(:inner, [as], asf in assoc(as, :assignment_submission_files))
|> select([as, asf], asf)
|> Repo.all()
Expand Down

0 comments on commit 89b66bb

Please sign in to comment.