Revert "feat: auto-move imported emails to IMAP folder and add 90-day cleanup"
This reverts commit b1b30fe1dd.
This commit is contained in:
@@ -232,7 +232,7 @@ export class InboxService {
|
||||
variant: 'preview' | 'thumbnail',
|
||||
preferredUsername: string | null,
|
||||
): Promise<string> {
|
||||
const { doc, pdfPath } = await this.resolveDocument(id, preferredUsername);
|
||||
const { doc } = await this.resolveDocument(id, preferredUsername);
|
||||
if (!Number.isInteger(page) || page < 1 || page > doc.PageCount) {
|
||||
throw new NotFoundException('Seite nicht gefunden');
|
||||
}
|
||||
@@ -244,12 +244,7 @@ export class InboxService {
|
||||
try {
|
||||
await fs.access(filePath);
|
||||
} catch {
|
||||
try {
|
||||
await this.barcodeScanner.ensurePageCache(doc.Id, pdfPath);
|
||||
await fs.access(filePath);
|
||||
} catch {
|
||||
throw new NotFoundException('Seite nicht gefunden');
|
||||
}
|
||||
throw new NotFoundException('Seite nicht gefunden');
|
||||
}
|
||||
return filePath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user