( options?: Partial<accounts> )
| 1 | import { AccountType, prisma, accounts } from '@linen/database'; |
| 2 | |
| 3 | export default async function createAccount( |
| 4 | options?: Partial<accounts> |
| 5 | ): Promise<accounts> { |
| 6 | return prisma.accounts.create({ |
| 7 | data: { |
| 8 | type: AccountType.PUBLIC, |
| 9 | name: 'Linen', |
| 10 | ...options, |
| 11 | }, |
| 12 | }); |
| 13 | } |
no test coverage detected