mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 19:21:39 +10:00
chore: update file name in import
This commit is contained in:
@ -2,7 +2,7 @@ import { deletedAccountServiceAccount } from '@documenso/lib/server-only/user/se
|
||||
import { prisma } from '@documenso/prisma';
|
||||
import { DocumentStatus } from '@documenso/prisma/client';
|
||||
|
||||
type MoveDocumentsOptions = {
|
||||
type HandleDocumentOwnershipOnDeletionOptions = {
|
||||
documentIds: number[];
|
||||
organisationOwnerId: number;
|
||||
};
|
||||
@ -10,7 +10,7 @@ type MoveDocumentsOptions = {
|
||||
export const handleDocumentOwnershipOnDeletion = async ({
|
||||
documentIds,
|
||||
organisationOwnerId,
|
||||
}: MoveDocumentsOptions) => {
|
||||
}: HandleDocumentOwnershipOnDeletionOptions) => {
|
||||
if (documentIds.length === 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { ORGANISATION_MEMBER_ROLE_PERMISSIONS_MAP } from '@documenso/lib/constants/organisations';
|
||||
import { AppError, AppErrorCode } from '@documenso/lib/errors/app-error';
|
||||
import { handleDocumentOwnershipOnDeletion } from '@documenso/lib/server-only/document/move-documents-to-owner-or-service';
|
||||
import { handleDocumentOwnershipOnDeletion } from '@documenso/lib/server-only/document/handle-document-ownership-on-deletion';
|
||||
import { buildOrganisationWhereQuery } from '@documenso/lib/utils/organisations';
|
||||
import { prisma } from '@documenso/prisma';
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { ORGANISATION_MEMBER_ROLE_PERMISSIONS_MAP } from '@documenso/lib/constants/organisations';
|
||||
import { handleDocumentOwnershipOnDeletion } from '@documenso/lib/server-only/document/move-documents-to-owner-or-service';
|
||||
import { handleDocumentOwnershipOnDeletion } from '@documenso/lib/server-only/document/handle-document-ownership-on-deletion';
|
||||
import { deleteTeam } from '@documenso/lib/server-only/team/delete-team';
|
||||
import { buildOrganisationWhereQuery } from '@documenso/lib/utils/organisations';
|
||||
import { prisma } from '@documenso/prisma';
|
||||
|
||||
Reference in New Issue
Block a user