and another
All checks were successful
Build Docker Images / test (push) Successful in 1m13s
Build Docker Images / build-and-push (push) Successful in 1m39s

This commit is contained in:
2025-11-19 17:21:14 +01:00
parent 5a5b70a5ed
commit c0a1945465
2 changed files with 3 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ public class AuthService
Console.WriteLine($"=== ValidateWithBackend: Sending Google credential for {email} ==="); Console.WriteLine($"=== ValidateWithBackend: Sending Google credential for {email} ===");
// Wyślij Google credential do backendu // Wyślij Google credential do backendu
var response = await _httpClient.PostAsJsonAsync("/Auth/apiToken", googleCredential); var response = await _httpClient.PostAsJsonAsync("Auth/apiToken", googleCredential);
if (response.IsSuccessStatusCode) if (response.IsSuccessStatusCode)
{ {

View File

@@ -23,7 +23,7 @@ public class LayerService
{ {
// Calculate start index from page number (page 1 = start 0, page 2 = start 50, etc.) // Calculate start index from page number (page 1 = start 0, page 2 = start 50, etc.)
var start = (filterRequest.Page - 1) * filterRequest.PageSize; var start = (filterRequest.Page - 1) * filterRequest.PageSize;
var query = $"/Layers?start={start}&limit={filterRequest.PageSize}"; var query = $"Layers?start={start}&limit={filterRequest.PageSize}";
if (!string.IsNullOrEmpty(filterRequest.Search)) if (!string.IsNullOrEmpty(filterRequest.Search))
query += $"&name={Uri.EscapeDataString(filterRequest.Search)}"; query += $"&name={Uri.EscapeDataString(filterRequest.Search)}";
@@ -44,7 +44,7 @@ public class LayerService
public async Task<LayerDto?> GetLayerByIdAsync(Guid id) public async Task<LayerDto?> GetLayerByIdAsync(Guid id)
{ {
var response = await _httpClient.GetAsync($"/Layers/{id}"); var response = await _httpClient.GetAsync($"Layers/{id}");
if (!response.IsSuccessStatusCode) if (!response.IsSuccessStatusCode)
return null; return null;