export DB, Event creation, broker with city/state
This commit is contained in:
@@ -12,6 +12,8 @@ import { FooterComponent } from './components/footer/footer.component';
|
||||
import { HeaderComponent } from './components/header/header.component';
|
||||
import { MessageContainerComponent } from './components/message/message-container.component';
|
||||
import { SearchModalComponent } from './components/search-modal/search-modal.component';
|
||||
import { AuditService } from './services/audit.service';
|
||||
import { GeoService } from './services/geo.service';
|
||||
import { LoadingService } from './services/loading.service';
|
||||
import { UserService } from './services/user.service';
|
||||
|
||||
@@ -35,6 +37,8 @@ export class AppComponent {
|
||||
private keycloakService: KeycloakService,
|
||||
private userService: UserService,
|
||||
private confirmationService: ConfirmationService,
|
||||
private auditService: AuditService,
|
||||
private geoService: GeoService,
|
||||
) {
|
||||
this.router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => {
|
||||
let currentRoute = this.activatedRoute.root;
|
||||
@@ -55,6 +59,11 @@ export class AppComponent {
|
||||
}
|
||||
},
|
||||
});
|
||||
// Ensure the service fetches the IP and Geolocation only once
|
||||
// this.auditService.fetchIpAndGeoLocation();
|
||||
this.geoService.fetchIpAndGeoLocation().subscribe(data => {
|
||||
console.log(JSON.stringify(data));
|
||||
});
|
||||
}
|
||||
private async handleTokenExpiration(): Promise<void> {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user