Skip to content

Commit

Permalink
fix: make sync jobs project-specific
Browse files Browse the repository at this point in the history
  • Loading branch information
rflihxyz committed Dec 24, 2024
1 parent 7c28b0b commit 3989319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class BullQueueService {
) {}

// getters

getRealtimeWebhookReceiver() {
return this.realTimeWebhookQueue;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/@core/sync/sync.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class CoreSyncService {
this.convertIntervalToCron(Number(interval));

await this.bullQueueService.queueSyncJob(
`${vertical}-sync-${commonObject}s`,
`${vertical}-sync-${commonObject}s-${project.id_project}`,
{
projectId: project.id_project,
vertical,
Expand Down Expand Up @@ -143,7 +143,7 @@ export class CoreSyncService {
getCommonObjectsForVertical(vertical);
for (const commonObject of commonObjects) {
await this.bullQueueService.removeRepeatableJob(
`${vertical}-sync-${commonObject}s`,
`${vertical}-sync-${commonObject}s-${project.id_project}`,
);
}
}
Expand Down

0 comments on commit 3989319

Please sign in to comment.