mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
16 lines
290 B
TypeScript
16 lines
290 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export type DeleteTokenByIdOptions = {
|
|
id: number;
|
|
userId: number;
|
|
};
|
|
|
|
export const deleteTokenById = async ({ id, userId }: DeleteTokenByIdOptions) => {
|
|
return prisma.apiToken.delete({
|
|
where: {
|
|
id,
|
|
userId,
|
|
},
|
|
});
|
|
};
|