Regression fixed
This commit is contained in:
parent
e4986be2d2
commit
e36f8cf927
|
@ -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>
|
||||
);
|
||||
}}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue