({
lastReplyAt,
threadId,
}: {
lastReplyAt: number;
threadId: string;
})
| 423 | }; |
| 424 | |
| 425 | export async function updateLastReplyAt({ |
| 426 | lastReplyAt, |
| 427 | threadId, |
| 428 | }: { |
| 429 | lastReplyAt: number; |
| 430 | threadId: string; |
| 431 | }) { |
| 432 | await prisma.threads.update({ |
| 433 | data: { |
| 434 | lastReplyAt, |
| 435 | }, |
| 436 | where: { |
| 437 | id: threadId, |
| 438 | }, |
| 439 | }); |
| 440 | } |
| 441 | |
| 442 | export const findThreadsByChannel = ({ |
| 443 | channelId, |
no test coverage detected