mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
fix: fixed the no document error
This commit is contained in:
@ -126,9 +126,8 @@ export const adminRouter = router({
|
||||
.mutation(async ({ input }) => {
|
||||
const { id, userId, reason } = input;
|
||||
try {
|
||||
const document = await superDeleteDocument({ id, userId });
|
||||
await sendDeleteEmail({ documentId: id, reason });
|
||||
return document;
|
||||
return await superDeleteDocument({ id, userId });
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
throw new TRPCError({
|
||||
|
||||
Reference in New Issue
Block a user