musora-content-services 2.155.7 → 2.155.8

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.
@@ -19,6 +19,9 @@ jobs:
19
19
  - name: Run unit tests
20
20
  run: npm test -- --coverage
21
21
  - name: Upload coverage to Codecov
22
- uses: codecov/codecov-action@v4
22
+ uses: codecov/codecov-action@v5
23
23
  with:
24
24
  token: ${{ secrets.CODECOV_TOKEN }}
25
+ slug: railroadmedia/musora-content-services
26
+ flags: unit
27
+ fail_ci_if_error: true
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.8](https://github.com/railroadmedia/musora-content-services/compare/v2.155.7...v2.155.8) (2026-04-24)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * revert activity timestamp changes ([#942](https://github.com/railroadmedia/musora-content-services/issues/942)) ([bd9f97d](https://github.com/railroadmedia/musora-content-services/commit/bd9f97d6547409b7f2856bf716c90d6723306c36))
11
+
5
12
  ### [2.155.7](https://github.com/railroadmedia/musora-content-services/compare/v2.155.6...v2.155.7) (2026-04-23)
6
13
 
7
14
 
package/codecov.yml CHANGED
@@ -1,5 +1,11 @@
1
- # codecov.yml
2
1
  comment:
3
2
  layout: "reach,diff,flags,tree"
4
3
  behavior: default
5
4
  require_changes: false
5
+
6
+ coverage:
7
+ status:
8
+ patch:
9
+ default:
10
+ target: 70%
11
+ threshold: 0%
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.155.7",
3
+ "version": "2.155.8",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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
- _offlineTimestamp: number,
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(tabName)
37
+ const clauses = getClauses(offlineTimestamp, tabName)
38
38
 
39
39
  const query = await db.contentProgress.queryAll(...clauses)
40
40
  const progress = query.data
@@ -54,8 +54,9 @@ export async function getRecentActivityOffline(
54
54
  }
55
55
  }
56
56
 
57
- function getClauses(tabName: string|null) {
57
+ function getClauses(offlineTimestamp: number, tabName: string|null) {
58
58
  let clauses: Q.Clause[] = [
59
+ Q.where('updated_at', Q.gte(offlineTimestamp)),
59
60
  Q.sortBy('created_at', 'desc'),
60
61
  ]
61
62