add total to zone
Some checks failed
backend-action / build-image (push) Failing after 10m40s

This commit is contained in:
2024-05-20 15:26:18 +07:00
parent 4934f799f5
commit 98a65043c9
10 changed files with 661 additions and 6 deletions

View File

@@ -2,12 +2,19 @@ import { db } from "@/src/db";
import LocationSelector from "../../components/LocationSelector";
import LocationContextProvider from "@/components/locationContext";
import GroupCreator from "./GroupCreator";
import { eq } from "drizzle-orm";
import { user } from "@/src/schema";
export default async function Page() {
const provinces = await db.query.province
.findMany({ with: { zones: true } })
.execute();
const jobList = await db.query.group.findMany().execute();
let r = await db.query.user
.findMany({ columns: { id: true }, where: eq(user.verified, true) })
.execute()
.then((v) => v.length);
console.log(r);
return (
<LocationContextProvider>
<LocationSelector provinces={provinces} />