Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #31 from siemensikkema/master
Browse files Browse the repository at this point in the history
Update for Fluent's ComputedField support
  • Loading branch information
steffendsommer authored May 16, 2017
2 parents b6cf462 + 1c4e4de commit 2804e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/QueryRepresentable+FirstOrFail.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extension QueryRepresentable where Self: ExecutorRepresentable {
/// - Throws: Error
public func firstOrFail() throws -> E {
let query = try makeQuery()
query.action = .fetch
query.action = .fetch([])
query.limits.append(RawOr.some(Limit(count: 1)))

guard let model = try query.first() else {
Expand Down

0 comments on commit 2804e5e

Please sign in to comment.