Skip to content

Commit

Permalink
replace constructor with inject
Browse files Browse the repository at this point in the history
  • Loading branch information
coolchock committed Nov 8, 2024
1 parent 9244996 commit 118d5b4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Injectable } from '@angular/core';
import { Injectable, inject } from '@angular/core';
import { HttpClient, HttpResponse } from '@angular/common/http';
import { Observable } from 'rxjs';
import dayjs from 'dayjs/esm';
Expand All @@ -12,8 +12,7 @@ export interface CleanupServiceExecutionRecordDTO {
@Injectable({ providedIn: 'root' })
export class DataCleanupService {
private readonly adminResourceUrl = 'api/admin/cleanup';

constructor(private http: HttpClient) {}
private http = inject(HttpClient);

/**
* Send DELETE request to delete orphaned data.
Expand Down

0 comments on commit 118d5b4

Please sign in to comment.