chore: Permanent team deletion (#2493)
This commit is contained in:
@ -4,7 +4,7 @@ import { Document, Attachment } from "../models";
|
||||
import { sequelize } from "../sequelize";
|
||||
import parseAttachmentIds from "../utils/parseAttachmentIds";
|
||||
|
||||
export async function documentPermanentDeleter(documents: Document[]) {
|
||||
export default async function documentPermanentDeleter(documents: Document[]) {
|
||||
const activeDocument = documents.find((doc) => !doc.deletedAt);
|
||||
|
||||
if (activeDocument) {
|
||||
|
Reference in New Issue
Block a user