mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
18 lines
410 B
TypeScript
18 lines
410 B
TypeScript
import { prisma } from '@documenso/prisma';
|
|
|
|
export const deletedAccountServiceAccount = async () => {
|
|
const serviceAccount = await prisma.user.findFirst({
|
|
where: {
|
|
email: 'deleted-account@documenso.com',
|
|
},
|
|
});
|
|
|
|
if (!serviceAccount) {
|
|
throw new Error(
|
|
'Deleted account service account not found, have you ran the appropriate migrations?',
|
|
);
|
|
}
|
|
|
|
return serviceAccount;
|
|
};
|