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 (
<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>
);
}}

View File

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

View File

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