MCPcopy Create free account
hub / github.com/Y80/bmm / getUserCheckHostsTask

Function getUserCheckHostsTask

src/controllers/BookmarkHostCheck.controller.ts:249–254  ·  view source on GitHub ↗
(userId: UserId)

Source from the content-addressed store, hash-verified

247}
248
249async 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
256async function savePublicCheckHostsTask(task: CheckHostsTaskValue) {
257 const value = task as typeof siteConfigs.$inferInsert.value

Callers 1

startUserCheckHostsTaskFunction · 0.85

Calls 1

parseCheckHostsTaskValueFunction · 0.85

Tested by

no test coverage detected