Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
fix(front-end): Fix real-time service crashes of service requests
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosPavajeau committed Mar 8, 2021
1 parent dd667d7 commit aa60840
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { ServiceRequest } from '@modules/service-requests/models/service-request
providedIn: 'root'
})
export class ServiceRequestSignalrService extends BaseSignalrService {
onNewServiceRequestRegister: EventEmitter<ServiceRequest>;
onNewServiceRequestRegister: EventEmitter<ServiceRequest> = new EventEmitter<ServiceRequest>();

constructor(private authService: AuthenticationService) {
super();
}

public startConnection() {
super.buildConnection('/ServiceRequestHub', this.authService.getToken());
super.buildConnection('/ServiceRequestsHub', this.authService.getToken());
super.startConnection();
}

Expand Down

0 comments on commit aa60840

Please sign in to comment.