fix an issue where jobs' ids won't be set correctly and the jobs will be run more than once

pull/745/head
ryanzhao 2 years ago
parent ff813e4376
commit 09a6a422d0

@ -294,8 +294,8 @@ public struct Job: Codable, Equatable, Identifiable, FetchableRecord, MutablePer
// MARK: - Custom Database Interaction
public mutating func didInsert(with rowID: Int64, for column: String?) {
self.id = rowID
public mutating func didInsert(_ inserted: InsertionSuccess) {
self.id = inserted.rowID
}
}

Loading…
Cancel
Save