Skip to content

Commit

Permalink
Poistettu testi error
Browse files Browse the repository at this point in the history
  • Loading branch information
hajoa committed Nov 29, 2024
1 parent 233b199 commit 6b9ba46
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/maksut-ui/app/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { notFound } from "next/navigation";

export const fetchLaskutBySecret = async (secret: string | undefined): Promise<{laskut: Array<Lasku>, contact?: string}> => {
const response = await fetch(`${backendUrl}/laskut-by-secret?secret=${secret}`, {cache: "no-cache"})
throw Error()
if (response.ok) {
return await response.json()
} else if (response.status === 404) {
Expand Down

0 comments on commit 6b9ba46

Please sign in to comment.