File tree Expand file tree Collapse file tree
client/app/shared/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import {inject, Injectable} from '@angular/core';
22import { NaturalLoggerExtra , NaturalLoggerType } from '@ecodev/natural' ;
33import { Observable , of } from 'rxjs' ;
44import { UserService } from '../../admin/users/services/user.service' ;
5+ import { localConfig } from '../generated-config' ;
56
67@Injectable ( {
78 providedIn : 'root' ,
@@ -10,6 +11,11 @@ export class LoggerExtraService implements NaturalLoggerExtra {
1011 private readonly userService = inject ( UserService ) ;
1112
1213 public getExtras ( ) : Observable < Partial < NaturalLoggerType > > {
13- return of ( { viewer : this . userService . getViewerValue ( Infinity ) ?. email } ) ;
14+ return of ( {
15+ viewer : this . userService . getViewerValue ( Infinity ) ?. email ,
16+ app : {
17+ version : localConfig . version ,
18+ } ,
19+ } ) ;
1420 }
1521}
You can’t perform that action at this time.
0 commit comments