Skip to content

Commit

Permalink
Fix: uncomment update vector on issue update (#313)
Browse files Browse the repository at this point in the history
2. Fix: add userservice in Notification module
  • Loading branch information
saimanoj authored Nov 22, 2024
1 parent 9a4123d commit b5753fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions apps/server/src/modules/issues/issues.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,7 @@ export default class IssuesService {
}

// Add the updated issue to the vector

// this.issuesQueue.addIssueToVector(updatedIssue);
this.issuesQueue.addIssueToVector(updatedIssue);

// Find the current and updated issue states
const [currentIssueState, updatedIssueState] = await Promise.all([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { BullModule } from '@nestjs/bull';
import { Module } from '@nestjs/common';
import { PrismaModule, PrismaService } from 'nestjs-prisma';

import { UsersService } from 'modules/users/users.service';

import { NotificationsController } from './notifications.controller';
import NotificationsService from './notifications.service';

Expand All @@ -13,7 +15,7 @@ import NotificationsService from './notifications.service';
BullModule.registerQueue({ name: 'notifications' }),
],
controllers: [NotificationsController],
providers: [NotificationsService, PrismaService],
providers: [NotificationsService, PrismaService, UsersService],
exports: [NotificationsService],
})
export class NotificationsModule {}

0 comments on commit b5753fa

Please sign in to comment.