Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit b71a879

Browse files
committed
fix imports
1 parent ce7dcb8 commit b71a879

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

projects/funixproductions-requests/src/lib/services/pacifista-api/web/user/dtos/PacifistaWebUserLinkDTO.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {ApiDTO} from "../../../../core/dtos/api-dto";
22

3-
class PacifistaWebUserLinkDTO extends ApiDTO {
3+
export class PacifistaWebUserLinkDTO extends ApiDTO {
44

55
funixProdUserId?: string;
66
minecraftUuid?: string;

projects/funixproductions-requests/src/lib/services/pacifista-api/web/user/services/PacifistaWebUserLinkService.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
import {CrudHttpClient} from "../../../../core/components/requests/crud-http-client";
22
import {environmentDev} from "../../../../../../environments/environment-dev";
33
import {environment} from "../../../../../../environments/environment";
4-
import {PacifistaPaymentResponseDTO} from "../../shop/payment/dtos/responses/PacifistaPaymentResponseDTO";
54
import {catchError, Observable, throwError} from "rxjs";
65
import {HttpClient, HttpErrorResponse} from "@angular/common/http";
6+
import {PacifistaWebUserLinkDTO} from "../dtos/PacifistaWebUserLinkDTO";
77

8-
export class PacifistaWebUserLinkService extends CrudHttpClient<PacifistaWebUserLinkService> {
8+
export class PacifistaWebUserLinkService extends CrudHttpClient<PacifistaWebUserLinkDTO> {
99

1010
publicUrl: string;
1111

12-
constructor(protected http: HttpClient, production: boolean) {
12+
constructor(protected httpClient: HttpClient, production: boolean) {
1313
super(
14-
http,
14+
httpClient,
1515
production ? environment.pacifistaApiUrl : environmentDev.pacifistaApiUrl,
1616
"web/user/link"
1717
);
1818
this.publicUrl = super.domain + super.path + '/public';
1919
}
2020

21-
linkUser(minecraftUsername: string): Observable<PacifistaWebUserLinkService> {
22-
return this.httpClient.post<PacifistaPaymentResponseDTO>(this.publicUrl + "/link", minecraftUsername, {headers: super.getHeaders()})
21+
linkUser(minecraftUsername: string): Observable<PacifistaWebUserLinkDTO> {
22+
return this.httpClient.post<PacifistaWebUserLinkDTO>(this.publicUrl + "/link", minecraftUsername, {headers: super.getHeaders()})
2323
.pipe(
2424
catchError((error: HttpErrorResponse) => {
2525
return throwError(() => this.buildErrorDto(error));
@@ -36,8 +36,8 @@ export class PacifistaWebUserLinkService extends CrudHttpClient<PacifistaWebUser
3636
);
3737
}
3838

39-
getCurrentUserLink(): Observable<PacifistaPaymentResponseDTO> {
40-
return this.httpClient.get<PacifistaPaymentResponseDTO>(this.publicUrl + "/linked", {headers: super.getHeaders()})
39+
getCurrentUserLink(): Observable<PacifistaWebUserLinkDTO> {
40+
return this.httpClient.get<PacifistaWebUserLinkDTO>(this.publicUrl + "/linked", {headers: super.getHeaders()})
4141
.pipe(
4242
catchError((error: HttpErrorResponse) => {
4343
return throwError(() => this.buildErrorDto(error));

0 commit comments

Comments
 (0)