Skip to content

Commit

Permalink
fix: Hidden categories got reset after delete/reorder (#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuong-tran authored Sep 19, 2024
1 parent 1dd04fc commit da558e6
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 @@ -84,7 +84,7 @@ class AnimeCategoryRepositoryImpl(
name = update.name,
order = update.order,
flags = update.flags,
hidden = if (update.hidden == true) 1L else 0L,
hidden = update.hidden?.let { if (it) 1L else 0L },
categoryId = update.id,
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class MangaCategoryRepositoryImpl(
name = update.name,
order = update.order,
flags = update.flags,
hidden = if (update.hidden == true) 1L else 0L,
hidden = update.hidden?.let { if (it) 1L else 0L },
categoryId = update.id,
)
}
Expand Down

0 comments on commit da558e6

Please sign in to comment.