diff --git a/src/components/users/Users.tsx b/src/components/users/Users.tsx index 9070ad6..f03e373 100644 --- a/src/components/users/Users.tsx +++ b/src/components/users/Users.tsx @@ -34,7 +34,8 @@ const Users: Component = (props) => { }); return (
  • - {user.doc.mail} + {user.id} ( + {user.doc.mail})
  • ); }} diff --git a/src/lib/admin-db-exists.ts b/src/lib/admin-db-exists.ts index 4610abf..97cfc52 100644 --- a/src/lib/admin-db-exists.ts +++ b/src/lib/admin-db-exists.ts @@ -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, diff --git a/src/routes/user/index.tsx b/src/routes/user/index.tsx index 4a7403b..12f2178 100644 --- a/src/routes/user/index.tsx +++ b/src/routes/user/index.tsx @@ -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(); - // const users = routeData(); return (

    Users