mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 04:31:39 +10:00
8 lines
304 B
TypeScript
8 lines
304 B
TypeScript
import { getTeamEmailByEmail } from '@documenso/lib/server-only/team/get-team-email-by-email';
|
|
|
|
import { authenticatedProcedure } from '../trpc';
|
|
|
|
export const getTeamEmailByEmailRoute = authenticatedProcedure.query(async ({ ctx }) => {
|
|
return await getTeamEmailByEmail({ email: ctx.user.email });
|
|
});
|