Skip to content

[Bug]: "Sync Past Entries" fails after changing an exercise #544

@mammuth

Description

@mammuth

Bug Description

I imported data via fitbit which apparently also created exercises. Changing the exercises categories from blank to eg. "Cardio" raised error shown below.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Import via fitbit
  2. Go to Exercises and change the category from blank to eg "cardio"
  3. Confirm "Sync Past Entries"

Environment

  • SparkyFitness Version: 0.16.3.6 / fb278e3
  • Running Env: Docker

Container Log for SparkyFitness_Server

sparkyfitness-server-1  | [2026-01-24T00:30:12.710Z] [ERROR] Error updating exercise entries snapshot for user 56d97fc8-79d8-41ac-b69c-1200272c7cda, exercise dc13da85-8ef4-4164-9038-8e63b7188661: TypeError: exerciseDb.updateExerciseEntriesSnapshot is not a function
sparkyfitness-server-1  |     at Object.updateExerciseEntriesSnapshot (/app/SparkyFitnessServer/services/exerciseService.js:1152:22)
sparkyfitness-server-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
sparkyfitness-server-1  |     at async /app/SparkyFitnessServer/routes/exerciseRoutes.js:1146:22
sparkyfitness-server-1  | [2026-01-24T00:30:12.718Z] [ERROR] Error caught by centralized handler: exerciseDb.updateExerciseEntriesSnapshot is not a function TypeError: exerciseDb.updateExerciseEntriesSnapshot is not a function
sparkyfitness-server-1  |     at Object.updateExerciseEntriesSnapshot (/app/SparkyFitnessServer/services/exerciseService.js:1152:22)
sparkyfitness-server-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
sparkyfitness-server-1  |     at async /app/SparkyFitnessServer/routes/exerciseRoutes.js:1146:22
sparkyfitness-server-1  | [2026-01-24T00:34:24.404Z] [ERROR] Error updating exercise entries snapshot for user 56d97fc8-79d8-41ac-b69c-1200272c7cda, exercise dc13da85-8ef4-4164-9038-8e63b7188661: TypeError: exerciseDb.updateExerciseEntriesSnapshot is not a function
sparkyfitness-server-1  |     at Object.updateExerciseEntriesSnapshot (/app/SparkyFitnessServer/services/exerciseService.js:1152:22)
sparkyfitness-server-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
sparkyfitness-server-1  |     at async /app/SparkyFitnessServer/routes/exerciseRoutes.js:1146:22
sparkyfitness-server-1  | [2026-01-24T00:34:24.405Z] [ERROR] Error caught by centralized handler: exerciseDb.updateExerciseEntriesSnapshot is not a function TypeError: exerciseDb.updateExerciseEntriesSnapshot is not a function
sparkyfitness-server-1  |     at Object.updateExerciseEntriesSnapshot (/app/SparkyFitnessServer/services/exerciseService.js:1152:22)
sparkyfitness-server-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
sparkyfitness-server-1  |     at async /app/SparkyFitnessServer/routes/exerciseRoutes.js:1146:22

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions