Skip to content

Commit

Permalink
hotfix: bug isPaused erase sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fufeck committed Sep 11, 2024
1 parent 1ad2fb5 commit fd8628c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions libs/shared/src/modules/publication/publication.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,14 @@ export class PublicationService {
}

private async setIsPaused(balId: string, isPaused: boolean): Promise<void> {
await this.basesLocalesRepository.update(
{
id: balId,
},
{ sync: { isPaused } },
);
await this.basesLocalesRepository
.createQueryBuilder('bases_locales')
.update(BaseLocale)
.set({
sync: () => `sync || '{"isPaused": ${isPaused}}'`,
})
.where({ id: balId })
.execute();
}

private async updateSync(
Expand Down

0 comments on commit fd8628c

Please sign in to comment.