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

Commit

Permalink
Update for Fluent's ComputedField support
Browse files Browse the repository at this point in the history
  • Loading branch information
siemensikkema authored May 15, 2017
1 parent b6cf462 commit 1c4e4de
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 1c4e4de

Please sign in to comment.