(id: string, title: string)
| 143 | } |
| 144 | |
| 145 | export async function updateThread(id: string, title: string) { |
| 146 | await prisma.threads.update({ |
| 147 | where: { id }, |
| 148 | data: { |
| 149 | title, |
| 150 | slug: slugify(title), |
| 151 | }, |
| 152 | }); |
| 153 | } |
| 154 | |
| 155 | export async function setThreadExternalId(id: string, externalId: string) { |
| 156 | await prisma.threads.update({ |
no test coverage detected