celo-poll/scripts/test-get-poll.ts
2025-12-08 16:31:30 +03:00

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)