Skip to content

Commit

Permalink
make notification routes public
Browse files Browse the repository at this point in the history
  • Loading branch information
hofstede-matheus committed Oct 3, 2023
1 parent c631e3d commit 0c40324
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export class CallNextClientOfDeskUsecase implements UseCase {
);

// TODO: notify queue subscriber
await this.notificationService.sendNotification(
client.queueId,
'A fila andou',
'A fila andou',
NotificationTypes.TO_TOPIC,
);
// await this.notificationService.sendNotification(
// client.queueId,
// 'A fila andou',
// 'A fila andou',
// NotificationTypes.TO_TOPIC,
// );

// TODO: notify client when he is called
const tokenFromClient = await this.clientRepository.getTokenFromClient(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ export class TypeOrmQueuesRepository implements QueueRepository {
clients_position_in_queues.queue_id
FROM clients_position_in_queues
WHERE clients_position_in_queues.client_id = $1
AND clients_position_in_queues.called_at IS NULL
`,
[userId],
);
Expand Down

0 comments on commit 0c40324

Please sign in to comment.