Skip to content

Commit

Permalink
Update all watch history on full syncs (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasodonnell authored Jun 8, 2024
1 parent 2bbd1b0 commit d219e29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apps/api/src/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class SyncService {
* Performs a FULL sync:
* - update all movies
* - update all tags
* - update watch history
* - update all watch history
* - delete movies
*/
async full(): Promise<void> {
Expand All @@ -175,11 +175,9 @@ export class SyncService {
this.logger.log('Starting full sync')
sync = await this.start(SyncService.FULL)

const lastSync: Sync | null = await this.getLast()

await this.tags()
await this.movies()
await this.watchHistory(lastSync?.finishedAt)
await this.watchHistory()
await this.deleteMovies()

this.logger.log('Finished full sync')
Expand Down

0 comments on commit d219e29

Please sign in to comment.