fix: Fix AniList ALSearchItem.status nullibility

This commit is contained in:
Secozzi 2024-10-06 11:08:08 +07:00 committed by Ahmad Ansori Palembani
parent 04d0003963
commit a33a167e2c
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -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?,
@ -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,