Commit cdc24a7
committed
Solving the anki sync issue. The logic to recoup the anki deck id from the decks listing API call was doubly flawed:
1- WordListRepo.getOrCreate() didn't properly update the db
2- WordListRepo.getOrCreate() function didn't return an updated deck object, but the original object with the wrong id of 01 parent d022f77 commit cdc24a7
2 files changed
Lines changed: 7 additions & 2 deletions
File tree
- crossPlatform/src/commonMain/kotlin/fr/berliat/hskwidget/data
- repo
- store
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
325 | 329 | | |
326 | 330 | | |
327 | 331 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments