π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix store
Smaug67392f43525dfa8b
diff --git a/frontend/app/stores/admin.store.ts b/frontend/app/stores/admin.store.tsindex 8c078d62..edebef1b 100644--- a/frontend/app/stores/admin.store.ts+++ b/frontend/app/stores/admin.store.ts@@ -36,14 +36,14 @@ export const useAdminStore = defineStore('admin', {async fetchUserDocuments(userId: string): Promise<Node[] | undefined> {const cachedUser = this.users?.find(user => user.id === userId);if (cachedUser && cachedUser.nodes) return cachedUser.nodes;- const responce = await makeRequest<Node[]>(`nodes/${userId}`, 'GET', {});+ const responce = await makeRequest<Node[]>(`nodes/user/${userId}`, 'GET', {});if (responce.status === 'success') {if (cachedUser) cachedUser.nodes = responce.result;return responce.result;} else throw responce.message;},async fetchUserDocument(userId: string, docId: string): Promise<Node | undefined> {- const responce = await makeRequest<{ node: Node; permissions: [] }>(`nodes/${userId}/${docId}`, 'GET', {});+ const responce = await makeRequest<{ node: Node; permissions: [] }>(`nodes/${docId}`, 'GET', {});if (responce.status === 'success') {return responce.result?.node;} else throw responce.message;