Skip to content

Commit

Permalink
fix ignored useSoftDeletes option
Browse files Browse the repository at this point in the history
  • Loading branch information
m-barthelemy committed Apr 7, 2020
1 parent bd2623e commit e034d33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/QueuesFluentDriver/FluentQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct FluentQueue {
let db: Database?
let context: QueueContext
let dbType: QueuesFluentDbType
let useSoftDeletes: Bool = true
let useSoftDeletes: Bool
static let model = JobModel(id: UUID.generateRandom(), key: "")
}

Expand Down
4 changes: 2 additions & 2 deletions Sources/QueuesFluentDriver/FluentQueuesDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Fluent
import SQLKit
import Queues


public enum QueuesFluentDbType: String {
case postgresql
case mysql
Expand Down Expand Up @@ -30,7 +29,8 @@ extension FluentQueuesDriver: QueuesDriver {
return FluentQueue(
db: db,
context: context,
dbType: QueuesFluentDbType(rawValue: (db as! SQLDatabase).dialect.name)!
dbType: QueuesFluentDbType(rawValue: (db as! SQLDatabase).dialect.name)!,
useSoftDeletes: self.useSoftDeletes
)
}

Expand Down

0 comments on commit e034d33

Please sign in to comment.