Skip to content

Commit

Permalink
Keep product image's dateCreated optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
selanthiraiyan committed Nov 5, 2024
1 parent fad32fb commit 84e15e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ extension ProductImage {
}

@NSManaged public var imageID: Int64
@NSManaged public var dateCreated: Date
@NSManaged public var dateCreated: Date?
@NSManaged public var dateModified: Date?
@NSManaged public var src: String
@NSManaged public var name: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extension Storage.ProductImage: ReadOnlyConvertible {
///
public func toReadOnly() -> Yosemite.ProductImage {
return ProductImage(imageID: imageID,
dateCreated: dateCreated,
dateCreated: dateCreated ?? Date(),
dateModified: dateModified,
src: src,
name: name,
Expand Down

0 comments on commit 84e15e1

Please sign in to comment.