fix delete latest

This commit is contained in:
Thomas Ruoff
2021-02-15 23:45:10 +01:00
parent 3386fb3928
commit 568ff80a18

View File

@@ -28,7 +28,7 @@ export async function getLatest(): Promise<ILatest[]> {
}
export async function removeLatest(item: { id: string }) {
const response = await fetch(`/api/pdf/latest/${item.id}`, { method: 'DELETE' })
const response = await fetch(`/api/pdf/${item.id}`, { method: 'DELETE' })
checkStatus(response)
return response
}