(rl: ReturnType<typeof createInterface>, question: string)
| 6 | import { eq } from 'drizzle-orm' |
| 7 | |
| 8 | function prompt(rl: ReturnType<typeof createInterface>, question: string): Promise<string> { |
| 9 | return new Promise((resolve) => { |
| 10 | rl.question(question, (answer) => resolve(answer.trim())) |
| 11 | }) |
| 12 | } |
| 13 | |
| 14 | async function lookupUserByEmail(email: string) { |
| 15 | const [user] = await db |