feat: implement hard delete, email notifications, watermark, and fix bulk download

This commit is contained in:
Leon Tonhäuser committed 2026-08-11 12:28:39 +02:00
1 parent 8dd1e10fea
commit 4667615ed0
15 files changed
+369 -65

No files matched your search

@@ -55,6 +55,13 @@ export async function archiveEditorialAction(editorialId: string): Promise<void>
redirect("/admin/redaktionen");
}
export async function hardDeleteEditorialAction(editorialId: string): Promise<void> {
await requireAdmin(new Headers(await headers()));
await editorialService.hardDeleteEditorial(editorialId);
revalidatePath("/admin/redaktionen");
redirect("/admin/redaktionen");
}
export async function suspendEditorialAction(editorialId: string): Promise<void> {
const admin = await requireAdmin(new Headers(await headers()));
await editorialService.transitionEditorialStatus({