fix: remove invalid @Optional decorator on field initializer
Some checks failed
Release / release (push) Has been cancelled

This commit is contained in:
sdarbinyan
2026-08-18 01:02:51 +04:00
parent c628b1d8a9
commit dc7440fea5

View File

@@ -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();