(userId: UserId)
| 247 | } |
| 248 | |
| 249 | async function getUserCheckHostsTask(userId: UserId) { |
| 250 | const row = await db.query.userConfigs.findFirst({ |
| 251 | where: and(eq(userConfigs.userId, userId), eq(userConfigs.key, CHECK_HOSTS_TASK_KEY)), |
| 252 | }) |
| 253 | return parseCheckHostsTaskValue(row?.value) |
| 254 | } |
| 255 | |
| 256 | async function savePublicCheckHostsTask(task: CheckHostsTaskValue) { |
| 257 | const value = task as typeof siteConfigs.$inferInsert.value |
no test coverage detected