10 lines
242 B
TypeScript
10 lines
242 B
TypeScript
import { getTodaysPoll } from '../lib/db/polls'
|
|
|
|
async function test() {
|
|
console.log('Current time (seconds):', Math.floor(Date.now() / 1000))
|
|
const poll = await getTodaysPoll()
|
|
console.log('Poll:', poll)
|
|
}
|
|
|
|
test().catch(console.error)
|