fix: style updates

This commit is contained in:
Lucas Smith
2023-10-14 00:20:11 +11:00
committed by Mythie
parent 9fa7505061
commit 5a79535080
4 changed files with 15 additions and 11 deletions

View File

@ -35,7 +35,7 @@ jobs:
- name: Generate Prisma Client
run: npm run prisma:generate -w @documenso/prisma
- name: Create the database
run: npm run prisma:migrate-dev -w @documenso/prisma
run: npm run prisma:migrate-dev
- name: Run Playwright tests
run: npm run ci
- uses: actions/upload-artifact@v3

View File

@ -48,7 +48,7 @@ test('user can login with user and password', async ({ page }: { page: Page }) =
test.afterAll('Teardown', async () => {
try {
await deleteUser(email);
await deleteUser({ email });
} catch (e) {
throw new Error(`Error deleting user: ${e}`);
}

View File

@ -1,6 +1,10 @@
import { prisma } from '@documenso/prisma';
export const deleteUser = async (email: string) => {
export type DeleteUserOptions = {
email: string;
}
export const deleteUser = async ({ email }: DeleteUserOptions) => {
const user = await prisma.user.findFirst({
where: {
email: {