Skip to content
Source
Sign inSign up
samwillis/hackernews-realtime
Open History to see the last commit

thread-watch.ts

6 lines262 Bytes

1import "server-only";
2import { databasePool } from "./db";
3import { updateThreadView } from "../ingest/thread-watch";
4export function watchThread(id: number, viewer?: string, released = false) {
5 return updateThreadView(databasePool(), id, viewer, released);
6}