Skip to content

Commit

Permalink
Use actual MangaStatus enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Apr 2, 2023
1 parent 106bda2 commit d830638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MangaType(
val author: String?,
val description: String?,
val genre: List<String>,
val status: String,
val status: MangaStatus,
val inLibrary: Boolean,
val inLibraryAt: Long,
val realUrl: String?,
Expand All @@ -46,7 +46,7 @@ class MangaType(
row[MangaTable.author],
row[MangaTable.description],
row[MangaTable.genre].toGenreList(),
MangaStatus.valueOf(row[MangaTable.status]).name,
MangaStatus.valueOf(row[MangaTable.status]),
row[MangaTable.inLibrary],
row[MangaTable.inLibraryAt],
row[MangaTable.realUrl],
Expand All @@ -65,7 +65,7 @@ class MangaType(
dataClass.author,
dataClass.description,
dataClass.genre,
dataClass.status,
MangaStatus.valueOf(dataClass.status),
dataClass.inLibrary,
dataClass.inLibraryAt,
dataClass.realUrl,
Expand Down

0 comments on commit d830638

Please sign in to comment.