fix: remove invalid @Optional decorator on field initializer
Some checks failed
Release / release (push) Has been cancelled
Some checks failed
Release / release (push) Has been cancelled
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { Injectable, inject, Optional } from '@angular/core';
|
import { Injectable, inject } from '@angular/core';
|
||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { Observable, of, catchError, map } from 'rxjs';
|
import { Observable, of, catchError, map } from 'rxjs';
|
||||||
import { AuthSession, WebSessionStart } from './models/session.model';
|
import { AuthSession, WebSessionStart } from './models/session.model';
|
||||||
@@ -20,7 +20,7 @@ const DEFAULT_TELEGRAM_BOT_USERNAME = 'DexarSupport_bot';
|
|||||||
export class TelegramSessionApiService {
|
export class TelegramSessionApiService {
|
||||||
private readonly http = inject(HttpClient);
|
private readonly http = inject(HttpClient);
|
||||||
private readonly authApiUrl = inject(AUTH_API_URL);
|
private readonly authApiUrl = inject(AUTH_API_URL);
|
||||||
@Optional() private readonly telegramBotUsername = inject(TELEGRAM_BOT_USERNAME, { optional: true });
|
private readonly telegramBotUsername = inject(TELEGRAM_BOT_USERNAME, { optional: true });
|
||||||
|
|
||||||
createSession(): Observable<WebSessionStart> {
|
createSession(): Observable<WebSessionStart> {
|
||||||
const webSessionID = generateGuid();
|
const webSessionID = generateGuid();
|
||||||
|
|||||||
Reference in New Issue
Block a user