cypress test is passing again

This commit is contained in:
Moriz Wahl 2020-01-29 10:57:45 +01:00
parent b513da9756
commit 30b90478a1

View File

@ -26,7 +26,7 @@ export default function(options = {}) {
resource = response.data[Object.keys(response.data)[0]][0]
if (resource) return redirect(`/${path}/${resource.id}/${resource.slug}`)
return error({ statusCode: 404, message })
return error({ statusCode: 404, key: message })
},
}
}