From ee6e8694491b3aa9697235245510ebe5095dd61a Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 29 Sep 2020 16:18:26 -0400 Subject: [PATCH] Fix softDeletes() --- Sources/FluentKit/Query/Builder/QueryBuilder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FluentKit/Query/Builder/QueryBuilder.swift b/Sources/FluentKit/Query/Builder/QueryBuilder.swift index 8a111671..3d5026df 100644 --- a/Sources/FluentKit/Query/Builder/QueryBuilder.swift +++ b/Sources/FluentKit/Query/Builder/QueryBuilder.swift @@ -102,7 +102,7 @@ public final class QueryBuilder } public func delete(force: Bool = false) -> EventLoopFuture { - self.includeDeleted = true + self.includeDeleted = force self.shouldForceDelete = force self.query.action = .delete return self.run()