Update domain page
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
import { db } from "~/server/db";
|
||||
import {
|
||||
createDomain,
|
||||
deleteDomain,
|
||||
getDomain,
|
||||
updateDomain,
|
||||
} from "~/server/service/domain-service";
|
||||
@@ -53,4 +54,11 @@ export const domainRouter = createTRPCRouter({
|
||||
openTracking: input.openTracking,
|
||||
});
|
||||
}),
|
||||
|
||||
deleteDomain: teamProcedure
|
||||
.input(z.object({ id: z.number() }))
|
||||
.mutation(async ({ ctx, input }) => {
|
||||
await deleteDomain(input.id);
|
||||
return { success: true };
|
||||
}),
|
||||
});
|
||||
|
Reference in New Issue
Block a user