()
| 7 | import { prisma } from '@linen/database'; |
| 8 | |
| 9 | async function run() { |
| 10 | let page = 0; |
| 11 | let hasMore; |
| 12 | do { |
| 13 | hasMore = await buildSentAtForThreads(); |
| 14 | console.log(hasMore * page); |
| 15 | page++; |
| 16 | } while (hasMore > 0); |
| 17 | } |
| 18 | |
| 19 | async function buildSentAtForThreads() { |
| 20 | // sentAt by default will have the value 0 |
no test coverage detected