fix: Hidden categories got reset after delete/reorder (#1780)

This commit is contained in:
Cuong-Tran 2024-09-19 17:23:51 +07:00 committed by GitHub
parent 1dd04fc5f1
commit da558e64df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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,
)
}

View file

@ -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,
)
}