Chore:
Moved to Angular 16 Moved to FastAPI 0.100.0 Moved to pydantic 2.0
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Resolve } from '@angular/router';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { SettingsService } from './settings.service';
|
||||
@ -7,7 +6,7 @@ import { SettingsService } from './settings.service';
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class PrefillCustomerDiscountResolver implements Resolve<boolean> {
|
||||
export class PrefillCustomerDiscountResolver {
|
||||
constructor(private ser: SettingsService) {}
|
||||
|
||||
resolve(): Observable<boolean> {
|
||||
|
||||
@ -9,7 +9,10 @@ const serviceName = 'SettingsService';
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class SettingsService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
constructor(
|
||||
private http: HttpClient,
|
||||
private log: ErrorLoggerService,
|
||||
) {}
|
||||
|
||||
getPrefillCustomerDiscount(): Observable<boolean> {
|
||||
const url = '/api/settings/prefill-customer-discount';
|
||||
|
||||
Reference in New Issue
Block a user