Skip to content

Commit

Permalink
Fix softDeletes()
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider authored Sep 29, 2020
1 parent ef2a9a7 commit ee6e869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FluentKit/Query/Builder/QueryBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public final class QueryBuilder<Model>
}

public func delete(force: Bool = false) -> EventLoopFuture<Void> {
self.includeDeleted = true
self.includeDeleted = force
self.shouldForceDelete = force
self.query.action = .delete
return self.run()
Expand Down

0 comments on commit ee6e869

Please sign in to comment.