( options?: Partial<users> )
| 1 | import { users, prisma } from '@linen/database'; |
| 2 | |
| 3 | export default async function createUser( |
| 4 | options?: Partial<users> |
| 5 | ): Promise<users> { |
| 6 | return prisma.users.create({ |
| 7 | data: { |
| 8 | displayName: 'John Doe', |
| 9 | profileImageUrl: 'https://foo.com/assets/images/john_doe.svg', |
| 10 | externalUserId: null, |
| 11 | isAdmin: false, |
| 12 | isBot: false, |
| 13 | accountsId: '1', |
| 14 | ...options, |
| 15 | }, |
| 16 | }); |
| 17 | } |
no test coverage detected