( options?: Partial<threads> )
| 1 | import { threads, prisma } from '@linen/database'; |
| 2 | |
| 3 | export default async function createThread( |
| 4 | options?: Partial<threads> |
| 5 | ): Promise<threads> { |
| 6 | return prisma.threads.create({ |
| 7 | data: { |
| 8 | sentAt: BigInt(100), |
| 9 | lastReplyAt: BigInt(100), |
| 10 | channelId: '1', |
| 11 | ...options, |
| 12 | }, |
| 13 | }); |
| 14 | } |
no test coverage detected