musora-content-services 2.155.6 → 2.155.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.155.7](https://github.com/railroadmedia/musora-content-services/compare/v2.155.6...v2.155.7) (2026-04-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* remove timestamp filtering of practice records in offline mode ([#938](https://github.com/railroadmedia/musora-content-services/issues/938)) ([1a8ac03](https://github.com/railroadmedia/musora-content-services/commit/1a8ac03bfa1b9b3670c45049adb9b833263ef871))
|
|
11
|
+
|
|
5
12
|
### [2.155.6](https://github.com/railroadmedia/musora-content-services/compare/v2.155.5...v2.155.6) (2026-04-23)
|
|
6
13
|
|
|
7
14
|
### [2.155.5](https://github.com/railroadmedia/musora-content-services/compare/v2.155.4...v2.155.5) (2026-04-23)
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ interface Activity {
|
|
|
20
20
|
* @returns `{ currentPage, totalPages, data }` where `data` is a page of `Activity` records
|
|
21
21
|
*/
|
|
22
22
|
export async function getRecentActivityOffline(
|
|
23
|
-
|
|
23
|
+
_offlineTimestamp: number,
|
|
24
24
|
{
|
|
25
25
|
page = 1,
|
|
26
26
|
limit = 5,
|
|
@@ -34,7 +34,7 @@ export async function getRecentActivityOffline(
|
|
|
34
34
|
// because setting up watermelon user activities table is extremely complicated.
|
|
35
35
|
// Note: this implementation does not persist "activities" beyond when the corresponding record is deleted. That's ok right now.
|
|
36
36
|
|
|
37
|
-
const clauses = getClauses(
|
|
37
|
+
const clauses = getClauses(tabName)
|
|
38
38
|
|
|
39
39
|
const query = await db.contentProgress.queryAll(...clauses)
|
|
40
40
|
const progress = query.data
|
|
@@ -54,9 +54,8 @@ export async function getRecentActivityOffline(
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
function getClauses(
|
|
57
|
+
function getClauses(tabName: string|null) {
|
|
58
58
|
let clauses: Q.Clause[] = [
|
|
59
|
-
Q.where('updated_at', Q.gte(offlineTimestamp)),
|
|
60
59
|
Q.sortBy('created_at', 'desc'),
|
|
61
60
|
]
|
|
62
61
|
|