chore: switch storage to D1 (test branch)

This commit is contained in:
shuaiplus committed 2026-02-09 22:00:14 +08:00
1 parent 5fc2436552
commit d2ce2aea24
17 files changed
+480 -333

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ function formatAttachments(attachments: Attachment[]): any[] | null {
// GET /api/sync
export async function handleSync(request: Request, env: Env, userId: string): Promise<Response> {
const storage = new StorageService(env.VAULT);
const storage = new StorageService(env.DB);
const user = await storage.getUserById(userId);
if (!user) {