| 1 | import { unstable_noStore as noStore } from "next/cache"; |
| 2 | import { eq } |
| 3 | import { db, settings |
| 4 | |
| 5 | export async function checkSetupComplete |
| 6 | noStore(); |
| 7 | try { |
| 8 | const row = |
| 9 | where: eq(settings |
| 10 | }); |
| 11 | return row?.value |
| 12 | } catch { |
| 13 | return false; |
| 14 | } |
| 15 | } |