feat: Equipment-System, Buchungsbearbeitung, Kundenadresse, LexOffice-Fix
- Vintage Modell hinzugefuegt - Equipment Multi-Select (Neue Buchung + Bearbeitung) - Kundenadresse in Formularen - Bearbeiten-Seite fuer Buchungen - Abbau-Zeiten in Formularen und Uebersicht - Vertrag PDF nur bei Privatkunden - LexOffice Kontakt-Erstellung Fix (BUSINESS) - Zurueck-Pfeil auf Touren-Seite
This commit is contained in:
@@ -2,6 +2,7 @@ import Imap from 'imap';
|
||||
import { simpleParser } from 'mailparser';
|
||||
import { prisma } from './prisma';
|
||||
import { emailParser } from './email-parser';
|
||||
import { bookingAutomationService } from './booking-automation';
|
||||
|
||||
export interface ImapConfig {
|
||||
host: string;
|
||||
@@ -335,6 +336,12 @@ export class EmailSyncService {
|
||||
},
|
||||
});
|
||||
|
||||
// 🤖 Automatische Post-Booking Aktionen
|
||||
console.log('📢 Starte automatische Aktionen...');
|
||||
bookingAutomationService.runPostBookingActions(booking.id).catch(err => {
|
||||
console.error('⚠️ Automatische Aktionen fehlgeschlagen:', err);
|
||||
});
|
||||
|
||||
return booking;
|
||||
} catch (error) {
|
||||
console.error('Failed to create booking from parsed data:', error);
|
||||
|
||||
Reference in New Issue
Block a user