Skip to content

Commit

Permalink
Fix AniList ALSearchItem.status nullibility (mihonapp/mihon#1297)
Browse files Browse the repository at this point in the history
(cherry picked from commit 76e0aba)
  • Loading branch information
Secozzi authored and cuong-tran committed Oct 6, 2024
1 parent 9329ea7 commit 60cc8ce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data class ALSearchItem(
val coverImage: ItemCover,
val description: String?,
val format: String,
val status: String = "",
val status: String?,
val startDate: ALFuzzyDate,
val chapters: Long?,
val averageScore: Int?,
Expand All @@ -20,7 +20,7 @@ data class ALSearchItem(
imageUrl = coverImage.large,
description = description,
format = format.replace("_", "-"),
publishingStatus = status,
publishingStatus = status ?: "",
startDateFuzzy = startDate.toEpochMilli(),
totalChapters = chapters ?: 0,
averageScore = averageScore ?: -1,
Expand Down

0 comments on commit 60cc8ce

Please sign in to comment.