From e36f8cf92749d43ce2decbc21484e2db44490669 Mon Sep 17 00:00:00 2001 From: evlist Date: Tue, 28 Feb 2023 22:24:07 +0100 Subject: [PATCH] Regression fixed --- src/components/users/Users.tsx | 3 ++- src/lib/admin-db-exists.ts | 2 +- src/routes/user/index.tsx | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) 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