From cb21a85736ba647710ccfc1a12b9280648760312 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Thu, 22 Jan 2026 19:35:45 +0100 Subject: [PATCH] Added Dokubox Sync Service and Button Fix #12 --- .../src/modules/cron/dokuboximport.service.ts | 29 ++++--------------- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/backend/src/modules/cron/dokuboximport.service.ts b/backend/src/modules/cron/dokuboximport.service.ts index e1222a6..fd4a7e2 100644 --- a/backend/src/modules/cron/dokuboximport.service.ts +++ b/backend/src/modules/cron/dokuboximport.service.ts @@ -19,23 +19,13 @@ import { and, } from "drizzle-orm" -let badMessageDetected = false -let badMessageMessageSent = false - -let client: ImapFlow | null = null - -// ------------------------------------------------------------- -// IMAP CLIENT INITIALIZEN -// ------------------------------------------------------------- - - - - -// ------------------------------------------------------------- -// MAIN SYNC FUNCTION (DRIZZLE VERSION) -// ------------------------------------------------------------- export function syncDokuboxService (server: FastifyInstance) { + let badMessageDetected = false + let badMessageMessageSent = false + + let client: ImapFlow | null = null + async function initDokuboxClient() { client = new ImapFlow({ host: secrets.DOKUBOX_IMAP_HOST, @@ -264,12 +254,3 @@ export function syncDokuboxService (server: FastifyInstance) { } } } - - - - - -// ------------------------------------------------------------- -// TENANT ERKENNEN + FOLDER/FILETYPES (DRIZZLE VERSION) -// ------------------------------------------------------------- -