Skip to content

Commit

Permalink
fix viewCategories change order bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdi-hosseinnion committed Mar 27, 2022
1 parent 8a19bf8 commit 3712f4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ interface CategoriesDao {
@Query(
value =
"""
SELECT categories.*,
SELECT categories.id as id,
categories.* ,
categoryImages.resName as imageResourceId,
categoryImages.backgroundColor as imageBackgroundColor
FROM categories
Expand All @@ -95,7 +96,8 @@ interface CategoriesDao {
@Query(
value =
"""
SELECT *,
SELECT categories.id as id,
categories.* ,
categoryImages.resName as imageResourceId,
categoryImages.backgroundColor as imageBackgroundColor
FROM categories
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ constructor(
stateEvent
)

val dataBaseOrder = allCategories.map { "id: ${it.id} order: ${it.ordering} |" }

val newOrder = stateEvent.newOrder

var didAllCategoriesUpdatedSuccessfully = true
Expand Down

0 comments on commit 3712f4b

Please sign in to comment.