mirror of
https://github.com/documenso/documenso.git
synced 2026-08-25 15:52:29 +10:00
fix: add multi email transport system (#2942)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { prisma } from '@documenso/prisma';
|
||||
|
||||
import { adminProcedure } from '../../trpc';
|
||||
import {
|
||||
ZDeleteEmailTransportRequestSchema,
|
||||
ZDeleteEmailTransportResponseSchema,
|
||||
} from './delete-email-transport.types';
|
||||
|
||||
export const deleteEmailTransportRoute = adminProcedure
|
||||
.input(ZDeleteEmailTransportRequestSchema)
|
||||
.output(ZDeleteEmailTransportResponseSchema)
|
||||
.mutation(async ({ input, ctx }) => {
|
||||
ctx.logger.info({
|
||||
input: {
|
||||
id: input.id,
|
||||
},
|
||||
});
|
||||
|
||||
await prisma.emailTransport.delete({
|
||||
where: {
|
||||
id: input.id,
|
||||
},
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user