Regression fixed

This commit is contained in:
Eric van der Vlist 2023-02-28 22:24:07 +01:00
parent e4986be2d2
commit e36f8cf927
3 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,8 @@ const Users: Component<Props> = (props) => {
}); });
return ( return (
<li> <li>
<A href={user.id}>{user.doc.mail}</A> <A href={user.id}>{user.id}</A> (
<a href={`mailto:${user.doc.mail}`}>{user.doc.mail}</a>)
</li> </li>
); );
}} }}

View File

@ -13,7 +13,7 @@ export const adminDbExists = async () => {
return null; return null;
} }
const response = await fetch(`${database}/_dyomedea_users`, { const response = await fetch(`${database}/dyomedea_users`, {
method: 'HEAD', method: 'HEAD',
mode: 'cors', mode: 'cors',
headers, headers,

View File

@ -28,8 +28,8 @@ export function routeData() {
headers, headers,
body: JSON.stringify({ body: JSON.stringify({
include_docs: true, include_docs: true,
startkey: 'user:', startkey: '@',
endkey: 'user:\ufff0', endkey: '@\ufff0',
}), }),
}); });
@ -52,7 +52,6 @@ createEffect(() => {
export default () => { export default () => {
const users = useRouteData<typeof routeData>(); const users = useRouteData<typeof routeData>();
// const users = routeData();
return ( return (
<main> <main>
<h1>Users</h1> <h1>Users</h1>