π 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
Compatibility for new backend
Smaug6739777adcc67a78
diff --git a/frontend/stores/categories.store.ts b/frontend/stores/categories.store.tsindex eec0e16e..64e1151d 100644--- a/frontend/stores/categories.store.ts+++ b/frontend/stores/categories.store.ts@@ -35,7 +35,7 @@ export const useCategoriesStore = defineStore('categories', {},update(category: Category) {return new Promise(async (resolve, reject) => {- const request = await makeRequest(`categories/${category.id}`, 'PATCH', category);+ const request = await makeRequest(`categories/${category.id}`, 'PUT', category);if (request.status == 'success') {this.categories = this.categories.map(c => {if (c.id == category.id) return category;diff --git a/frontend/stores/documents.store.ts b/frontend/stores/documents.store.tsindex 51da9d4c..e5d4a0cf 100644--- a/frontend/stores/documents.store.ts+++ b/frontend/stores/documents.store.ts@@ -68,7 +68,7 @@ export const useDocumentsStore = defineStore('documents', {},update(doc: Document) {return new Promise(async (resolve, reject) => {- const request = await makeRequest(`documents/${doc.id}`, 'PATCH', doc);+ const request = await makeRequest(`documents/${doc.id}`, 'PUT', doc);if (request.status == 'success') resolve((this.documents = this.documents.map(d => (d.id == doc.id ? doc : d))));else reject(request.message);});