mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
chore: ui updates
This commit is contained in:
@ -5,6 +5,7 @@ import { validateApiToken } from '@documenso/lib/server-only/webhooks/zapier/val
|
||||
export const testCredentialsHandler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
try {
|
||||
const { authorization } = req.headers;
|
||||
|
||||
const user = await validateApiToken({ authorization });
|
||||
|
||||
return res.status(200).json({
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
import { prisma } from '@documenso/prisma';
|
||||
|
||||
export interface GetUserWebhooksByIdOptions {
|
||||
id: number;
|
||||
}
|
||||
|
||||
export const getUserWebhooksById = async ({ id }: GetUserWebhooksByIdOptions) => {
|
||||
return await prisma.user.findFirstOrThrow({
|
||||
where: {
|
||||
id,
|
||||
},
|
||||
select: {
|
||||
email: true,
|
||||
Webhooks: true,
|
||||
},
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user