mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-08-11 11:42:03 +00:00
fixed typos
This commit is contained in:
@@ -177,7 +177,7 @@ customerGroup.MapGet("/{id}", async (int id, BarkContext db) =>
|
|||||||
|
|
||||||
if (customer == null)
|
if (customer == null)
|
||||||
{
|
{
|
||||||
return Results.NotFound(new { Message = "Customer item not found" });
|
return Results.NotFound(new { Message = "Customer not found" });
|
||||||
}
|
}
|
||||||
|
|
||||||
return Results.Ok(customer);
|
return Results.Ok(customer);
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {Customer} from "../types.ts";
|
|||||||
queryKey: ['customer'],
|
queryKey: ['customer'],
|
||||||
queryFn: async (): Promise<Customer[]> => {
|
queryFn: async (): Promise<Customer[]> => {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
import.meta.env.VITE_API_URL + '/custmoers',
|
import.meta.env.VITE_API_URL + '/customers',
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!response.ok) throw new Error('Failed to fetch customers ' + response.statusText)
|
if (!response.ok) throw new Error('Failed to fetch customers ' + response.statusText)
|
||||||
|
|||||||
Reference in New Issue
Block a user