fix: Build-Fehler behoben (Import + Buffer Type)
Some checks failed
Preview Deploy / deploy (push) Failing after 1m49s
Some checks failed
Preview Deploy / deploy (push) Failing after 1m49s
This commit is contained in:
@@ -36,7 +36,7 @@ export async function GET(
|
|||||||
|
|
||||||
const pdfBuffer = await lexofficeService.getInvoicePDF(booking.lexofficeConfirmationId);
|
const pdfBuffer = await lexofficeService.getInvoicePDF(booking.lexofficeConfirmationId);
|
||||||
|
|
||||||
return new NextResponse(pdfBuffer, {
|
return new NextResponse(new Uint8Array(pdfBuffer), {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/pdf',
|
'Content-Type': 'application/pdf',
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { NextRequest, NextResponse } from 'next/server';
|
|||||||
import { prisma } from '@/lib/prisma';
|
import { prisma } from '@/lib/prisma';
|
||||||
import { AIService } from '@/lib/ai-service';
|
import { AIService } from '@/lib/ai-service';
|
||||||
import { LexOfficeService } from '@/lib/lexoffice';
|
import { LexOfficeService } from '@/lib/lexoffice';
|
||||||
import { getCalendarService } from '@/lib/nextcloud-calendar';
|
import { nextcloudCalendar } from '@/lib/nextcloud-calendar';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AUTO-WORKFLOW CRON-JOB
|
* AUTO-WORKFLOW CRON-JOB
|
||||||
@@ -48,7 +48,7 @@ export async function GET(request: NextRequest) {
|
|||||||
|
|
||||||
const aiService = new AIService();
|
const aiService = new AIService();
|
||||||
const lexoffice = new LexOfficeService();
|
const lexoffice = new LexOfficeService();
|
||||||
const calendar = getCalendarService();
|
const calendar = nextcloudCalendar;
|
||||||
|
|
||||||
let processed = 0;
|
let processed = 0;
|
||||||
let errors = 0;
|
let errors = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user