Skip to content

Commit f25206e

Browse files
committed
Add back consume function call
1 parent e5ee647 commit f25206e

File tree

1 file changed

+2
-1
lines changed
  • peerprep-fe/src/app/(main)/match

1 file changed

+2
-1
lines changed

peerprep-fe/src/app/(main)/match/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function LoadingPage() {
1414
const router = useRouter();
1515
const { user } = useAuthStore();
1616
const listenerInitialized = useRef(false);
17-
17+
1818
// Function to consume messages from the RabbitMQ queue
1919
const handleStartListening = () => {
2020
const onMessageReceived = (message: any) => {
@@ -26,6 +26,7 @@ export default function LoadingPage() {
2626
setMatchStatus('failed');
2727
}
2828
};
29+
consumeMessageFromQueue(user?.id!, onMessageReceived);
2930
};
3031

3132
useEffect(() => {

0 commit comments

Comments
 (0)