Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix backend types

Smaug6739d2a1f8ea3382
diff --git a/backend/config.ts b/backend/config.ts
index 8a44d620..04bc135a 100644
--- a/backend/config.ts
+++ b/backend/config.ts
@@ -1,9 +1,10 @@
import { resolve } from 'path';
+import type ms from 'ms';
export const config = {
max_file_size: 20 * 1024 * 1024, // 20MB
upload_path: resolve(__dirname, '../uploads'),
- access_token_expiration: '1800s',
+ access_token_expiration: '1800s' as ms.StringValue,
access_token_expiration_ms: 1800 * 1000, // 30 minutes
refresh_token_expiration: 7 * 24 * 60 * 60 * 1000,
// in octets